Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Misc. unresolved stuff
- X-seq: zsh-workers 1722
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- Subject: Re: Misc. unresolved stuff
- Date: Fri, 19 Jul 1996 12:59:17 -0700
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: Zoltan Hidvegi <hzoli@xxxxxxxxxx> "Re: Misc. unresolved stuff" (Jul 19, 9:30pm)
- References: <199607191930.VAA09905@xxxxxxxxxxxxxxxxx>
- Reply-to: schaefer@xxxxxxx
On Jul 19, 9:30pm, Zoltan Hidvegi wrote:
> Subject: Re: Misc. unresolved stuff
>
> ! endchar = *str;
> ! *str = '\0';
> !
> ! 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 ...
Messages sorted by:
Reverse Date,
Date,
Thread,
Author