1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 04:30:24 +02:00

26042 with some fixes from 26043 (Mikael):

allow <(...) and >(...) to occur in the middle of strings
and =(...) to have extra text following
This commit is contained in:
Peter Stephenson 2008-11-13 21:18:14 +00:00
parent dcd26714bb
commit 35a8612f21
7 changed files with 143 additions and 61 deletions

View file

@ -353,12 +353,18 @@ texinode(Process Substitution)(Parameter Expansion)(History Expansion)(Expansion
sect(Process Substitution)
cindex(process substitution)
cindex(substitution, process)
Each command argument of the form
Each part of a command argument that takes the form
`tt(<LPAR())var(list)tt(RPAR())',
`tt(>LPAR())var(list)tt(RPAR())' or
`tt(=LPAR())var(list)tt(RPAR())'
is subject to process substitution.
In the case of the tt(<) or tt(>) forms, the shell runs process
is subject to process substitution. The expression may be preceeded
or followed by other strings except that, to prevent clashes with
commonly occurring strings and patterns, the last
form must occur at the start of a command argument, and none of
the forms may occur inside parentheses used for grouping of patterns or
inside parameter substitutions.
In the case of the tt(<) or tt(>) forms, the shell runs the commands in
var(list) asynchronously. If the system supports the tt(/dev/fd)
mechanism, the command argument is the name of the device file
corresponding to a file descriptor; otherwise, if the system supports named