diff options
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 |