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

Re: Misc. unresolved stuff



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