From e849beabbab31c83ac57693cb0a7ac1e58f8cfd5 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 18 Aug 2013 16:55:01 -0700 Subject: Initial work towards various IO cleanups with an eye to fixing https://github.com/fish-shell/fish-shell/issues/110 --- tests/test1.in | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/test1.in') 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' -- cgit v1.2.3