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
* DervishD wrote on Sat, Feb 11, 2006 at 01:22:26PM CET:
I've spotted a problem with libtool that has to do with the word
splitting that Zsh does in the expression '${1+$@}' (which, in
turn, is a workaround to fix the $@ expansion problem when the
variable is empty in old shells). GNU
Hi Ralf :)
* Ralf Wildenhues [EMAIL PROTECTED] dixit:
* DervishD wrote on Sat, Feb 11, 2006 at 01:22:26PM CET:
I've spotted a problem with libtool that has to do with the word
splitting that Zsh does in the expression '${1+$@}' (which, in
turn, is a workaround to fix the $@
Hi Raúl,
I would like to know if option SH_WORD_SPLIT is set problem is solved too ?
Test case:
===
#!/bin/zsh
VAR=v1 v2
for V in ${VAR}; do
echo V1=$V
done
setopt SH_WORD_SPLIT
for V in ${VAR}; do
echo V2=$V
done
===
When
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Sunday 12 February 2006 18:05, Roumen Petrov wrote:
Hi Raúl,
I would like to know if option SH_WORD_SPLIT is set problem is solved too ?
No. In this case it splits too much. It was discussed back in 2002 already;
using global alias seems to