From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (root@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id XAA00218 for ; Thu, 1 Aug 1996 23:03:45 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id HAA06135; Thu, 1 Aug 1996 07:44:39 -0400 (EDT) Resent-Date: Thu, 1 Aug 1996 07:44:39 -0400 (EDT) Message-Id: <199608011143.NAA17587@hydra.ifh.de> To: srb@cuci.nl (Stephen R. van den Berg), zsh-workers@math.gatech.edu (Zsh hackers list) Subject: Re: Procmail rejects zsh as being "broken" In-reply-to: "srb@cuci.nl"'s message of "Thu, 01 Aug 1996 13:29:46 MET." <199608011129.NAA17916@hera.cuci.nl> Date: Thu, 01 Aug 1996 13:43:23 +0200 From: Peter Stephenson Resent-Message-ID: <"hwoTE2.0.nV1.cY90o"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/1865 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu srb@cuci.nl wrote: > The test should have read (fixed in the next release :-): > > *zsh*) $RM src/_autotst > $SHELL < O="echo test" > exec 2>$DEVNULL 1>&2 > \$O && echo test >src/_autotst > HERE > > As to why it is just being tested on zsh, well, that's the only shell > that (ever) exhibited this (broken) behaviour. It's *not* broken. See the FAQ. Zsh has arrays if you want the variable to have separate words. Having it splitting on every single space in every single variable is the broken behaviour, inherited from the time when arrays didn't exist. None of the developers think this should be the default behaviour (I have never heard any dissenters, feel free to speak out). The default behaviour is different in more subtle ways anyway. The object is to make a usable shell, not one with every builtin historical limitation. To more practical matters: I suggest the test be *zsh*) $RM src/_autotst setopt shwordsplit $SHELL <$DEVNULL 1>&2 \$O && echo test >src/_autotst HERE (i.e. with the added setopt line) since it's zsh-specific anyway. This works in all versions of zsh to implement the sh behaviour. -- Peter Stephenson Tel: +49 33762 77366 WWW: http://www.ifh.de/~pws/ Fax: +49 33762 77330 Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen DESY-IfH, 15735 Zeuthen, Germany.