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

RE: Quoted parameter parsing glitch



> schaefer<502> print "${foo:-"}"
> dquote braceparam>
> 
> At this point the parser is in an infinite loop.  There's nothing you
can
> type (except end-of-file or interrupt) that will free you from the PS2
> prompt.
> 

Shell should not hang, but please note it is invalid as per POSIX.
Double-quotes and braces must match. So whatever fix is used, it should
not make the above valid construct (i.e. it should not print `"'). 

-andrej



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