[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Word splitting with zsh fix
From: |
Wayne Davison |
Subject: |
Re: Word splitting with zsh fix |
Date: |
Mon, 13 Feb 2006 00:46:51 -0800 |
User-agent: |
Mutt/1.5.11 |
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..