From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id JAA01954 for ; Tue, 24 Sep 1996 09:46:04 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id TAA20366; Mon, 23 Sep 1996 19:35:23 -0400 (EDT) Resent-Date: Mon, 23 Sep 1996 19:35:23 -0400 (EDT) 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 Date: Mon, 23 Sep 1996 14:47:00 -0400 X400-Originator: /dd.id=1569151/g=alain/i=a/s=caron/@bnr.ca X400-MTS-Identifier: [/PRMD=BNR/ADMD=TELECOM.CANADA/C=CA/;bcars735.b.476:23.08.96.18.49.45] X400-Content-Type: P2-1984 (2) Content-Identifier: Bug in Parsing? From: "alain (a.) caron" Sender: "alain (a.) caron" Message-ID: <"648 Mon Sep 23 14:50:14 1996"@bnr.ca> To: zsh-workers@math.gatech.edu Subject: Bug in Parsing? Resent-Message-ID: <"Njxjx.0.8-4.wwnHo"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2161 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu 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@nortel.ca phone: 514-765-7718 or ESN 852-7718