Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Fix testsuite errors due to shell quoted parameter expansion issue.
- X-seq: zsh-workers 28126
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: Eric Blake <eblake@xxxxxxxxxx>
- Subject: Re: Fix testsuite errors due to shell quoted parameter expansion issue.
- Date: Tue, 3 Aug 2010 22:43:14 +0100
- Cc: zsh-workers@xxxxxxx
- In-reply-to: <4C588248.9050807@xxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20100803203204.GG13690@xxxxxx> <4C588248.9050807@xxxxxxxxxx>
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