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

Re: Zsh 3.1.6 - ${~foo} expansion bug



Peter Stephenson wrote:

> Sven Wischnowsky wrote:
> > The initialisation to `1' for esglob in the patch below shouldn't
> > really be necessary, because both es* should be set up when one of the 
> > functions calling execsubst() will be called.
> 
> This sort of thing really needs more comments, particular at the point the
> variables are declared.

Ok.

Bye
 Sven

diff -ru ../z.old/Src/exec.c Src/exec.c
--- ../z.old/Src/exec.c	Mon Feb 14 10:03:06 2000
+++ Src/exec.c	Mon Feb 14 10:12:58 2000
@@ -1505,6 +1505,11 @@
     }
 }
 
+/* These describe the type of espansions that need to be done on the words
+ * used in the thing we are about to execute. They are set in execcmd() and
+ * used in execsubst() which might be called from one of the functions
+ * called from execcmd() (like execfor() and so on). */
+
 static int esprefork, esglob = 1;
 
 /**/

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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