diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2013-08-18 16:55:01 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2013-08-19 18:06:24 -0700 |
commit | e849beabbab31c83ac57693cb0a7ac1e58f8cfd5 (patch) | |
tree | fa8872516ac378bd32ef3be5844100bc64cf4c1b /tests | |
parent | 2979d3bf169f51fb2ba218897994745754f830f9 (diff) |
Initial work towards various IO cleanups with an eye to fixing https://github.com/fish-shell/fish-shell/issues/110
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test1.in | 5 | ||||
-rw-r--r-- | tests/test1.out | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/test1.in b/tests/test1.in index 4c261e10..c180159c 100644 --- a/tests/test1.in +++ b/tests/test1.in @@ -94,6 +94,11 @@ else end echo Test 5 $sta +# Verify that we can turn stderr into stdout and then pipe it. +# Note that the order here seems unspecified - 'errput' appears before 'output', why? +echo Test redirections +begin ; echo output ; echo errput 1>&2 ; end 2>&1 | tee /tmp/tee_test.txt ; cat /tmp/tee_test.txt + # echo tests echo 'abc\ndef' diff --git a/tests/test1.out b/tests/test1.out index 13219ff3..c6ecbb30 100644 --- a/tests/test1.out +++ b/tests/test1.out @@ -18,6 +18,11 @@ Test pass Test 3 pass Test 4 pass Test 5 pass +Test redirections +errput +output +errput +output abc\ndef abc def |