bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Zsh 3 and ${1+"$@"} (Was: [GNU Autoconf 2.53] testsuite.log: 126 failure


From: Akim Demaille
Subject: Zsh 3 and ${1+"$@"} (Was: [GNU Autoconf 2.53] testsuite.log: 126 failures)
Date: 09 Apr 2002 11:45:11 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)

Hi!

We (Autoconf) have a big problem with Zsh 3.0.8.  You know it is
shipped on Darwin as /bin/sh.  But this version does not understand
${1+"$@"} properly.  We use this instead of "$@" to work around a bug
which still exists today in many many constructors' /bin/sh, so we
can't departure from it.

But then, I have no choice than systematically rejecting /bin/sh if it
turns out to be zsh 3.  Unless there is some magic that can make
${1+"$@"} work properly?  Thanks!

Subject: Topics

Topics:
   Re: [GNU Autoconf 2.53] testsuite.log: 126 failures
   Re: [GNU Autoconf 2.53] testsuite.log: 126 failures 

--- Begin Message --- Subject: Re: [GNU Autoconf 2.53] testsuite.log: 126 failures Date: 08 Apr 2002 10:22:44 +0200
| [ I've got an attachment, so I had to send this a little differently. -ab ]
| > Oh, I forgot to ask...  Please, not only should you run ./testsuite 3,
| 
| Attached testsuite.log.
| 
| > but also the same as before:
| >
| > | >         cd testsuite.dir/003
| > | >         PATH=../..:$PATH autoconf -d -v -f -t 'TRACE1:
| > | >         Hello world!'
| 
| This gives: 
| 
| |ARG: {--include}
| |ARG: {/Users/ab/Desktop/autoconf-2.53/lib}
| |ARG: {-d}
| |ARG: {-v}
| |ARG: {-f}
| |ARG: {-t}
| |ARG: {TRACE1:}
| |ARG: {Hello}
| |ARG: {world!}

It's already broken at this point!

Grrr.  What the heck is happening with your system :(

Please, try to run this shell-script:

Attachment: args.sh
Description: Text Data

Just run it with your /bin/sh (which should be zsh).  Thanks!

--- End Message ---
--- Begin Message --- Subject: Re: [GNU Autoconf 2.53] testsuite.log: 126 failures Date: Mon, 08 Apr 2002 10:34:47 -0500
In message <address@hidden>, Akim Demaille writes:
> 
> It's already broken at this point!
> 
> Grrr.  What the heck is happening with your system :(

This (z)sh is weird, I'm telling you.

> Please, try to run this shell-script:

OK, here's the result from /bin/sh (zsh 3.0.8)

        1.
        {dummy}
        {arg1}
        {arg 2}
        {arg
        3}
        2.
        {dummy}
        {arg1}
        {arg}
        {2}
        {arg}
        {3}
        3.
        {dummy}
        {arg1}
        {arg}
        {2}
        {arg}
        {3}

The newer zsh (4.0.4) and bash both give:

        1.
        {dummy}
        {arg1}
        {arg 2}
        {arg
        3}
        2.
        {dummy}
        {arg1}
        {arg 2}
        {arg
        3}
        3.
        {dummy}
        {arg1}
        {arg 2}
        {arg
        3}

ab



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]