diff options
author | axel <axel@liljencrantz.se> | 2005-10-21 22:39:45 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2005-10-21 22:39:45 +1000 |
commit | 6139df926b75b0bdbe35d49feed3e3f1c52b51ea (patch) | |
tree | c2490b8e2b6ebe9ffd14167dd5bf2d680464076f /doc_src/psub.txt | |
parent | a91c5fa86a28c769e0e9525861c6a819549c4fe7 (diff) |
Documentation and completion updates
darcs-hash:20051021123945-ac50b-3d3b5004fdf8424190cae84c7b27b2088c87c080.gz
Diffstat (limited to 'doc_src/psub.txt')
-rw-r--r-- | doc_src/psub.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/doc_src/psub.txt b/doc_src/psub.txt new file mode 100644 index 00000000..d69c16fb --- /dev/null +++ b/doc_src/psub.txt @@ -0,0 +1,21 @@ + +\section psub psub - Perform process substitution + +\subsection psub-synopsis Synopsis + <tt>COMMAND1 (COMMAND2|psub) </tt> + +\subsection psub-description Description + +Posix shells feature a syntax that is a mix between command +substitution and piping, called process substitution. It is used to +send the output of a command into the calling command, much like +command substitution, but with the difference that the output is not +sent through commandline arguments but through a named pipe, with the +filename of the named pipe sent as an argument to the calling +program. The psub shellscript function, which when combined with a +regular command substitution provides the same functionality. + +\subsection psub-example Example + +<tt>diff (sort a.txt|psub) (sort b.txt|psub)</tt> shows the difference +between the sorted versions of files a.txt and b.txt. |