logo       

Re: shell wrapper bug exists in 1.4.3, too: msg#00093

gnu.libtool.general

Subject: Re: shell wrapper bug exists in 1.4.3, too

Bruce Korb <bkorb@xxxxxxxxxxx> writes:
>
> Next step is CVS, but meanwhile, this is the command line
> in the failing shell script:
>
> exec $program ${1+"$@"}

I'm not sure I understand the full circumstances, but perhaps it's the
dodgy word splitting in zsh described in the autoconf manual "Shell
Substitutions".

I encountered a problem with this construct on an ancient bash
recently too, where ${1+"$@"} came out as an empty argument, rather
than nothing (the same as "$@" is well-known to do).

Autoconf suggests testing $#,

case $# in
0) something ;;
*) something "$@";;
esac


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise