Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: trouble with debugging binary

On Nov 21,  8:45pm, Bart Schaefer wrote:
} Sadly, rebuilding without --enable-zsh-debug is sort of like removing
} the batteries from your smoke detector.  There may still be a fire, but
} you just aren't hearing about it any more.

And indeed, there really WAS an "unknown word code".  Except it was only
unknown to gettext2().

Turns out that gettext2() predates the DEBUG_BEFORE_CMD option, and that
there is one word code that can't possibly appear when the command text
is examined after the command is executed, and therefore gettext2() did
not bother about understanding that particular word code.

The initial guess about out-of-date .zwc files was a red herring.

diff --git a/Src/text.c b/Src/text.c
index f55553e..75f642c 100644
--- a/Src/text.c
+++ b/Src/text.c
@@ -834,6 +834,10 @@ gettext2(Estate state)
 	    stack = 1;
+	case WC_AUTOFN:
+	    taddstr("builtin autoload -X");
+	    stack = 1;
+	    break;
 	case WC_TRY:
 	    if (!s) {

Messages sorted by: Reverse Date, Date, Thread, Author