Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bug in Parsing?
- X-seq: zsh-workers 2161
- From: "alain (a.) caron" <alainc@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: Bug in Parsing?
- Date: Mon, 23 Sep 1996 14:47:00 -0400
- Sender: "alain (a.) caron" <alainc@xxxxxxxxx>
- X400-content-type: P2-1984 (2)
- X400-mts-identifier: [/PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/;bcars735.b.476:23.08.96.18.49.45]
- X400-originator: /dd.id=1569151/g=alain/i=a/s=caron/@bnr.ca
- X400-received: by mta bnr.ca in /PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/; Relayed; Mon, 23 Sep 1996 18:40:23 -0400
- X400-received: by /PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/; Relayed; Mon, 23 Sep 1996 14:49:45 -0400
- X400-received: by /PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/; Relayed; Mon, 23 Sep 1996 14:47:00 -0400
ZSH has problems parsing the following line:
(( /bin/sh -c "ls" )& )
It replies with:
zsh: parse error near `/bin/sh -c '
ksh, bash, sh and posix-sh on the HP-UX all accept that command.
I've build ZSH-3.0.0 on HP-UX 9.05 with HP cc.
It seems that zsh does not like the outermost parenthesis. At least,
it wants a blank between the two opening ones... It is probably
related to the $(( construct ...
ZSH-2.6-beta21 shows the same behaviour.
This example might seem artificial but this is how our local setup is
working: we have to put in our .profile (or .zprofile in my case) the
following command:
eval `setup`.
This setup program is supposed to set some environment variables.
The setup command is issuing a command like the faulty one.
I'll have to do eval `setup | sed ...` as a workaround.
Alain Caron
Nortel Technology, Montr?al, Qu?bec, Canada
email: alainc@xxxxxxxxx
phone: 514-765-7718 or ESN 852-7718
Messages sorted by:
Reverse Date,
Date,
Thread,
Author