From: Hrvoje Niksic <hniksic@srce.hr>
To: zsh-workers@math.gatech.edu
Subject: Arithmetic expressions and subshells
Date: 22 Jan 1997 00:42:06 +0100 [thread overview]
Message-ID: <kigwwt6r3xt.fsf@jagor.srce.hr> (raw)
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: <oru3ok9kmz.fsf@dcc.unicamp.br>
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 -------
reply other threads:[~1997-01-21 23:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=kigwwt6r3xt.fsf@jagor.srce.hr \
--to=hniksic@srce.hr \
--cc=zsh-workers@math.gatech.edu \
/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).