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

Re: Misc. unresolved stuff



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