diff options
author | 2007-01-16 04:19:24 +1000 | |
---|---|---|
committer | 2007-01-16 04:19:24 +1000 | |
commit | 00c6fcfe9856dd123c2be6c8ffc053bc693005c6 (patch) | |
tree | 91ee9db2df3fbdfe7bae9da6b40c81e7cdb95f5e | |
parent | c90f7c3203c170c330296e26592e540023286936 (diff) |
Document -f option for psub, add tab completions
darcs-hash:20070115181924-ac50b-6ac48aec8937e9dd172858dfa7eaaac1aca14775.gz
-rw-r--r-- | doc_src/psub.txt | 8 | ||||
-rw-r--r-- | share/completions/psub.fish | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/doc_src/psub.txt b/doc_src/psub.txt index 0e02281b..c12278d3 100644 --- a/doc_src/psub.txt +++ b/doc_src/psub.txt @@ -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 diff --git a/share/completions/psub.fish b/share/completions/psub.fish new file mode 100644 index 00000000..08b2296e --- /dev/null +++ b/share/completions/psub.fish @@ -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") |