zsh-workers
 help / color / mirror / code / Atom feed
From: Akim Demaille <akim@epita.fr>
To: zsh-workers@sunsite.dk
Cc: ab@purdue.edu, bug-autoconf@gnu.org
Subject: Zsh 3 and ${1+"$@"} (Was: [GNU Autoconf 2.53] testsuite.log: 126 failures)
Date: 09 Apr 2002 11:45:11 +0200	[thread overview]
Message-ID: <mv4pu19xl20.fsf@nostromo.lrde.epita.fr> (raw)
In-Reply-To: <200204081534.g38FYlY0058635@epicenter.eas.purdue.edu>

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


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!


[-- Attachment #2.1: Type: text/plain, Size: 137 bytes --]

Subject: Topics

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


[-- Attachment #2.2: Type: text/plain, Size: 1459 bytes --]

Date: 08 Apr 2002 10:22:44 +0200
From: Akim Demaille <akim@epita.fr>
To: Allen Braunsdorf <ab@eas.purdue.edu>
Cc: bug-autoconf@gnu.org, ab@purdue.edu
Subject: Re: [GNU Autoconf 2.53] testsuite.log: 126 failures
Message-ID: <mv4lmby38h7.fsf@nostromo.lrde.epita.fr>
References: <34421.1018025952@epicenter.eas.purdue.edu>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="====-=-="

--====-=-=


| [ 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:


--====-=-=
Content-Type: text/x-sh
Content-Disposition: attachment; filename=args.sh

#! /bin/sh

set dummy 'arg1' 'arg 2' 'arg
3'

echo "1."
for i in "$@"
do
  echo "{$i}"
done

echo "2."
for i in ${1+"$@"}
do
  echo "{$i}"
done

set ${1+"$@"}

echo "3."
for i in "$@"
do
  echo "{$i}"
done

--====-=-=


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

--====-=-=--

[-- Attachment #2.3: Type: text/plain, Size: 965 bytes --]

Date: Mon, 08 Apr 2002 10:34:47 -0500
From: A Braunsdorf <ab@eas.purdue.edu>
To: Akim Demaille <akim@epita.fr>
cc: Allen Braunsdorf <ab@purdue.edu>, bug-autoconf@gnu.org
Subject: Re: [GNU Autoconf 2.53] testsuite.log: 126 failures 
Message-Id: <200204081534.g38FYlY0058635@epicenter.eas.purdue.edu>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii


In message <mv4lmby38h7.fsf@nostromo.lrde.epita.fr>, 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



       reply	other threads:[~2002-04-09  9:45 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200204081534.g38FYlY0058635@epicenter.eas.purdue.edu>
2002-04-09  9:45 ` Akim Demaille [this message]
2002-04-09 10:35   ` Peter Stephenson
2002-04-09 10:51     ` Akim Demaille
2002-04-09 11:05       ` Peter Stephenson
2002-04-09 11:18       ` Bart Schaefer
2002-04-09 11:45       ` Oliver Kiddle
2002-04-09 11:59         ` Peter Stephenson
2002-04-10 15:52           ` Akim Demaille
2002-04-10 15:54             ` A Braunsdorf
2002-04-10 17:33               ` Akim Demaille
2002-04-10 20:41                 ` A Braunsdorf
2002-04-10 17:09             ` Paul Eggert
2002-04-10 17:32               ` Akim Demaille
2002-04-09 11:30     ` Peter Stephenson
2002-04-09 16:34       ` Bart Schaefer
2002-04-09 16:45         ` Peter Stephenson
2002-04-09 18:09           ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=mv4pu19xl20.fsf@nostromo.lrde.epita.fr \
    --to=akim@epita.fr \
    --cc=ab@purdue.edu \
    --cc=bug-autoconf@gnu.org \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).