Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: What's with the ctrl-A characters in the .yo files?
- X-seq: zsh-workers 4041
- From: Zefram <zefram@xxxxxxxxx>
- To: schaefer@xxxxxxxxxxxxxxxx (Bart Schaefer)
- Subject: Re: What's with the ctrl-A characters in the .yo files?
- Date: Thu, 4 Jun 1998 18:10:21 +0100 (BST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <980604094422.ZM13799@xxxxxxxxxxxxxxxxxxxxxxx> from "Bart Schaefer" at Jun 4, 98 09:44:22 am
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.
-zefram
Messages sorted by:
Reverse Date,
Date,
Thread,
Author