Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [SOLVED] Libtool/zsh quoting problem: a zsh... bug?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
You do not need to Cc me, I am reading list every now and then :)
>
> Could you please point me to where the standard says that the
> splitting shouldn't be done after that particular expansion? I've
> been searching with no success :((( The only thing I've found is that
> when a parameter expansion occurs in double quotes, field splitting
> shall not be done in the result, except for "@".
>
> The problem is that libtool doesn't use "${1+... but just $1+...,
> without quotes, so the splitting *should* be done. That's why I think
> bash is wrong here and zsh is right.
>
<http://www.opengroup.org/onlinepubs/000095399/utilities/xcu_chap02.html#tag_02_05_01>
combined with semantic of ${var+word}:
<http://www.opengroup.org/onlinepubs/000095399/utilities/xcu_chap02.html#tag_02_06_02>
"$@" never does word splitting; and ${var+word} is replaced with result of
_expansion_ of word. Word in this case is "$@" ...
- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFD7dh5R6LMutpd94wRAqpsAKCStkZZpKrvXXxck9mfahpWJZcbqQCfY1+K
ZXvoo+fWKpWLtKKkHTvk7cQ=
=+Mo4
-----END PGP SIGNATURE-----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author