diff options
author | Christopher Nilsson <christopher@otherchirps.net> | 2010-11-12 02:07:14 +1100 |
---|---|---|
committer | Christopher Nilsson <christopher@otherchirps.net> | 2010-11-12 02:07:14 +1100 |
commit | 1b0ce336693243054580e07b4514c598257d4422 (patch) | |
tree | 71af04f124f2853c0018e3c7d85e942591658910 /share/functions/psub.fish | |
parent | 0cf2a1eb3382a6384b61a6edd577d387b9b62766 (diff) | |
parent | b9b6e867df9718ec17d36f8cd6771cd9a337c46b (diff) |
Merged changes from codemonkey and grissiom branches
Conflicts:
kill.c
seq.in
Diffstat (limited to 'share/functions/psub.fish')
-rw-r--r-- | share/functions/psub.fish | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/functions/psub.fish b/share/functions/psub.fish index b3e958d4..42e34c73 100644 --- a/share/functions/psub.fish +++ b/share/functions/psub.fish @@ -9,7 +9,7 @@ function psub --description "Read from stdin into a file and output the filename set -l longopt -l help,file if getopt -T >/dev/null - set longopt + set longopt end if not getopt -n psub -Q $shortopt $longopt -- $argv >/dev/null @@ -57,7 +57,7 @@ function psub --description "Read from stdin into a file and output the filename # Write output to pipe. This needs to be done in the background so # that the command substitution exits without needing to wait for # all the commands to exit - mkfifo $filename + mkfifo $filename cat >$filename & else cat >$filename @@ -75,6 +75,6 @@ function psub --description "Read from stdin into a file and output the filename end # Make sure we erase file when caller exits - eval function $funcname --on-job-exit caller\; command rm $filename\; functions -e $funcname\; end + eval function $funcname --on-job-exit caller\; command rm $filename\; functions -e $funcname\; end end |