Cleanup of code that decides whether or not to fork. Fix for issue where stderr may be output twice.

This commit is contained in:
ridiculousfish
2013-06-16 23:26:43 -07:00
parent c6ec2645dc
commit 640118e781
3 changed files with 134 additions and 114 deletions

View File

@@ -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
emit