Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: pws-21: parentheses in command word



"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