zsh-workers
 help / color / mirror / code / Atom feed
* Word splitting with zsh fix
@ 2006-02-11 12:22 DervishD
  2006-02-12  8:56 ` Ralf Wildenhues
  2006-02-12 15:05 ` Roumen Petrov
  0 siblings, 2 replies; 11+ messages in thread
From: DervishD @ 2006-02-11 12:22 UTC (permalink / raw)
  To: bug-libtool; +Cc: Zsh Workers

[-- Attachment #1: Type: text/plain, Size: 1195 bytes --]

    Hi all :)

    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 autoconf has already corrected
this problem, and I'm using a similar fix for libtool. The patch is
gzipped and attached to this message.

    Looking at the SUS (POSIX) standard, I'm not sure if field
splitting should be performed in the above expression or not, so I
don't know if the correct behaviour is what Bash does or what Zsh
does. Anyway, I'm not here looking for a culprit but for a solution.
I will be glad to discuss the issue, anyway, just for curiosity's
sake ;)

    I've tested the patch against "littlecms" sources, because that's
the package where the problem was spotted by David Gómez Espinosa
<david@pleyades.net>. The patch was suggested by Andrey Borzenkov
<arvidjaar@newmail.ru>.

    Thanks in advance and happy hacking :)

    Raúl Núñez de Arenas Coronado

-- 
Linux Registered User 88736 | http://www.dervishd.net
http://www.pleyades.net & http://www.gotesdelluna.net
It's my PC and I'll cry if I want to... RAmen!

[-- Attachment #2: libtool.patch.gz --]
[-- Type: application/x-gzip, Size: 433 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-02-13 16:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-11 12:22 Word splitting with zsh fix DervishD
2006-02-12  8:56 ` Ralf Wildenhues
2006-02-12 10:33   ` DervishD
2006-02-13 16:52     ` Ralf Wildenhues
2006-02-12 15:05 ` Roumen Petrov
2006-02-12 16:57   ` Andrey Borzenkov
2006-02-12 21:52     ` Roumen Petrov
2006-02-12 18:45   ` Wayne Davison
2006-02-12 21:52     ` Roumen Petrov
2006-02-13  8:46       ` Wayne Davison
2006-02-13 11:37   ` DervishD

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).