diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-06-16 23:26:43 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-06-16 23:26:43 -0700 |
commit | 640118e781d9687ba2f2664629fe205ec081479f (patch) | |
tree | c6be31efd7cd8467a008cb278e696d2c49f41c03 /tests/test9.in | |
parent | c6ec2645dce59acdb2a8b659c84e2fc1aee19882 (diff) |
Cleanup of code that decides whether or not to fork. Fix for issue where stderr may be output twice.
Diffstat (limited to 'tests/test9.in')
-rw-r--r-- | tests/test9.in | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/test9.in b/tests/test9.in index b8842727..a38fbc7c 100644 --- a/tests/test9.in +++ b/tests/test9.in @@ -1,5 +1,14 @@ +# ensure that builtins that produce no output can still truncate files +# (bug PCA almost reintroduced!) +echo "Testing that builtins can truncate files" +echo abc > /tmp/file_truncation_test.txt +cat /tmp/file_truncation_test.txt +echo -n > /tmp/file_truncation_test.txt +cat /tmp/file_truncation_test.txt + # Test events. + # This pattern caused a crash; github issue #449 set -g var before @@ -25,4 +34,4 @@ end emit test3 foo bar # test empty argument -emit
\ No newline at end of file +emit |