Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Misc. unresolved stuff
- X-seq: zsh-workers 1723
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- To: schaefer@xxxxxxx
- Subject: Re: Misc. unresolved stuff
- Date: Fri, 19 Jul 1996 22:27:44 +0200 (MET DST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <960719125917.ZM391@xxxxxxxxxxxxxxxxxxxxxxx> from Bart Schaefer at "Jul 19, 96 12:59:17 pm"
- Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary
- Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368
Bart wrote:
> > ! while (*++str != endchar)
> > ! DPUTS(!*str, "Oops. parse error in command substitution");
>
> Shouldn't that be:
>
> while (*++str && *str != endchar)
>
> ?? Otherwise you could go wandering off the end of str ...
At least it will be obvious that something is wrong. It should be
impossible for a null to come before the endchar.
Zoltan
Messages sorted by:
Reverse Date,
Date,
Thread,
Author