Document -f option for psub, add tab completions

darcs-hash:20070115181924-ac50b-6ac48aec8937e9dd172858dfa7eaaac1aca14775.gz
This commit is contained in:
axel 2007-01-16 04:19:24 +10:00
parent c90f7c3203
commit 00c6fcfe98
2 changed files with 9 additions and 1 deletions

View file

@ -1,7 +1,7 @@
\section psub psub - perform process substitution
\subsection psub-synopsis Synopsis
<tt>COMMAND1 (COMMAND2|psub) </tt>
<tt>COMMAND1 (COMMAND2|psub [-f]) </tt>
\subsection psub-description Description
@ -14,6 +14,12 @@ 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.
If the \c -f or \c --file switch is given to psub, psub will use a
regular file instead of a named pipe to communicate with the calling
process. This will cause psub to be significantly slower when large
amounts of data are involved, but has the advantage that the reading
process can seek in the stream.
\subsection psub-example Example
<tt>diff (sort a.txt|psub) (sort b.txt|psub)</tt> shows the difference

View file

@ -0,0 +1,2 @@
complete -c psub -s h -l help -d (N_ "Display help and exit")
complete -c psub -s f -l file -d (N_ "Communicate using a regular file, not a named pipe")