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

Re: [BUG] (z)-flag interrupts if $() in input



Sebastian Gniazdowski wrote on Sat, Oct 29, 2016 at 23:33:09 -0700:
> Hello,
> % a='This is a $() test of z flag'
> % print -rl -- "${(z@)a}"
> This
> is
> a
> $()
> 

«eval $a» returns a parse error in zsh but succeeds in sh.  Let's put
(z) to one side for the moment; should the command
.
    % echo foo $() bar
.
print "foo bar\n" or return a parse error?



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