From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29516 invoked from network); 21 Jan 1997 23:48:01 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by coral.primenet.com.au with SMTP; 21 Jan 1997 23:48:01 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id SAA00595; Tue, 21 Jan 1997 18:40:40 -0500 (EST) Resent-Date: Tue, 21 Jan 1997 18:40:40 -0500 (EST) Sender: hniksic@public.srce.hr To: zsh-workers@math.gatech.edu Subject: Arithmetic expressions and subshells X-URL: ftp://gnjilux.cc.fer.hr/pub/unix/util/wget/ X-Attribution: Hrv X-Face: &}4JQk=L;e.~x+|eo]#DGk@x3~ed!.~lZ}YQcYb7f[WL9L'Z*+OyA\nAEL1M(".[qvI#a2E 6WYI5>>e7'@_)3Ol9p|Nn2wNa/;~06jL*B%tTcn/XvhAu7qeES0\|MF%$;sI#yn1+y" From: Hrvoje Niksic Date: 22 Jan 1997 00:42:06 +0100 Message-ID: X-Mailer: Red Gnus v0.82/XEmacs 19.14 Resent-Message-ID: <"Lus7u3.0.B9.tFLvo"@euclid> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/2812 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu There are cases when zsh is not able to see correctly whether an expression is a `((...))' let-substitute, or embedded subshells. Here is a message describing it from gnu.bash.bug, which well applies to zsh. I think the case mentioned is quite reasonable, and that a change should be thought of. What do you think? ------- Start of forwarded message ------- From: oliva@dcc.unicamp.br (Alexandre Oliva) Subject: Re: [50 character or so descriptive subject here (for reference)] Date: 14 Jan 1997 16:28:20 -0200 Organization: IC - UNICAMP - Campinas, SP, Brazil Message-ID: References: <199701102345.AAA01140@papa.home> Newsgroups: gnu.bash.bug Stefan Seibold writes: > sh -c '((/usr/local/bin/raplayer /tmp/MO32.ram); rm /tmp/MO32.ram)&' > This are the errors reported by bash: > sh: -c: line 1: missing closing `)' for arithmetic expression I've seen several bug reports on this problem, and I think it would be worth implementing a change in the grammar: `((' should only be considered an expression if it were matched by a `))'. If a single `)' were found, then whatever is between the parens would be considered a command list. Does anyone know how hard it would be to implement this? -- Alexandre Oliva mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org Universidade Estadual de Campinas, SP, Brasil ------- End of forwarded message -------