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

Re: What's with the ctrl-A characters in the .yo files?

Bart Schaefer wrote:
>I notice there'a macro expansion for it, mentioning a yodl bug.  When is it
>necessary to insert one?

The yodl engine mishandles file inclusion.  Macro expansion works with the
pending input stack in the intuitively obvious way, but the INCLUDEFILE()
macro, rather than expanding to the contents of the file, expands to
nothing, and as a side effect adds the file's contents to the *end* of the
pending input stack.  The practical upshot is that file inclusion does not
work correctly anywhere except at the outermost level of macro expansion;
anywhere else, evil things happen to the text immediately following the
macro call.  IIRC, the ^A characters are actually there as a substitute
for a backslash, in a place where an actual backslash disappears.


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