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

Re: Fix testsuite errors due to shell quoted parameter expansion issue.



On Tue, 03 Aug 2010 14:55:36 -0600
Eric Blake <eblake@xxxxxxxxxx> wrote:
> But it is _also_ a bug in zsh; adding zsh-workers accordingly.
> 
> $ zsh -cvx 'f=" val" e=; echo "$e"$f'
> +zsh:1> f=' val' e=''
> +zsh:1> echo ' val'
>  val
> 
> Oops - zsh only passed one argument to echo, with a leading space,
> instead of passing an empty argument and letting echo supply the space.

That's not a bug, you haven't enabled the SH_WORD_SPLIT option.  Try
in sh compatibility mode.

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



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