Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: pws-21: parentheses in command word
- X-seq: zsh-workers 6530
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: PATCH: pws-21: parentheses in command word
- Date: Tue, 08 Jun 1999 16:30:46 +0200
- In-reply-to: ""Bart Schaefer""'s message of "Tue, 08 Jun 1999 14:51:40 DFT." <990608145140.ZM24078@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
"Bart Schaefer" wrote:
> } For some reason, parentheses are treated specially in the command word in
> } zsh, not just at the start (where, of course, they start a subshell).
>
> They're treated that way because array assignments are in command position.
That's a special case: if it finds an '=' in the command word, it searches
for a '(' straight afterwards, so the code for searching for a '(' on its
own isn't used. But maybe it was once.
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
Messages sorted by:
Reverse Date,
Date,
Thread,
Author