diff options
author | Kevin Ballard <kevin@sb.org> | 2014-10-02 16:32:16 -0700 |
---|---|---|
committer | Kevin Ballard <kevin@sb.org> | 2014-10-02 18:41:39 -0700 |
commit | 33a76e1f8e386e2bfce1613cc164908f0939bc27 (patch) | |
tree | d937046b87ba49fafa2ebbf935826b83a9a2c1d4 /tests/test9.in | |
parent | cfc06203e7ad7707acadd160292d47b25d6daba6 (diff) |
Update psub for the new --inherit-variable flag
Also do some minor formatting cleanup, make psub return 1 when executed
outside of a command substitution, and make it respect $TMPDIR.
Diffstat (limited to 'tests/test9.in')
-rw-r--r-- | tests/test9.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test9.in b/tests/test9.in index e40bc74e..95a75843 100644 --- a/tests/test9.in +++ b/tests/test9.in @@ -1,3 +1,4 @@ +# vim: set filetype=fish: # ensure that builtins that produce no output can still truncate files # (bug PCA almost reintroduced!) echo "Testing that builtins can truncate files" @@ -89,4 +90,11 @@ cat (echo foo | psub) cat (echo bar | psub) cat (echo baz | psub) +set -l filename (echo foo | psub) +if test -e $filename + echo 'psub file was not deleted' +else + echo 'psub file was deleted' +end + false |