zsh-workers
 help / color / mirror / code / Atom feed
* What's with the ctrl-A characters in the .yo files?
@ 1998-06-04 16:44 Bart Schaefer
  1998-06-04 17:10 ` Zefram
  0 siblings, 1 reply; 2+ messages in thread
From: Bart Schaefer @ 1998-06-04 16:44 UTC (permalink / raw)
  To: zsh-workers

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

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: What's with the ctrl-A characters in the .yo files?
  1998-06-04 16:44 What's with the ctrl-A characters in the .yo files? Bart Schaefer
@ 1998-06-04 17:10 ` Zefram
  0 siblings, 0 replies; 2+ messages in thread
From: Zefram @ 1998-06-04 17:10 UTC (permalink / raw)
  To: Bart Schaefer; +Cc: zsh-workers

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-06-04 17:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-06-04 16:44 What's with the ctrl-A characters in the .yo files? Bart Schaefer
1998-06-04 17:10 ` Zefram

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).