Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Word splitting with zsh fix
- X-seq: zsh-workers 22252
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: Roumen Petrov <bugtrack@xxxxxxxxxxxxxxxxx>
- Subject: Re: Word splitting with zsh fix
- Date: Mon, 13 Feb 2006 00:46:51 -0800
- Cc: Zsh Workers <zsh-workers@xxxxxxxxxx>, bug-libtool@xxxxxxx
- In-reply-to: <43EFAE17.9020800@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20060211122226.GD13513@DervishD> <43EF4EAA.6040507@xxxxxxxxxxxxxxxxx> <20060212184538.GA25045@xxxxxxxxxxxxx> <43EFAE17.9020800@xxxxxxxxxxxxxxxxx>
On Sun, Feb 12, 2006 at 11:52:23PM +0200, Roumen Petrov wrote:
> I don't know other way to write compatible script without to set
> SH_WORD_SPLIT for zsh.
The right way is to run the script using /bin/sh, and if that happens
to be zsh, it will automatically set SH_WORD_SPLIT when it turns on sh
emulation mode. When run explicitly as zsh, you can turn it on manually
using something like this:
[ -n "${ZSH_VERSION+set}" ] && emulate sh
> Is word splitting on ${1+"$@"} bug in zsh ?
Yes, it is. I'm looking into a fix.
..wayne..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author