aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/indent.in6
-rw-r--r--tests/indent.out4
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/indent.in b/tests/indent.in
index 83ef915b..a1143c67 100644
--- a/tests/indent.in
+++ b/tests/indent.in
@@ -83,3 +83,9 @@ echo -n '
if begin ; false; end; echo hi ; end
while begin ; false; end; echo hi ; end
' | ../test/root/bin/fish_indent
+
+echo \nTest redir formatting
+# issue 2899
+echo -n '
+echo < stdin >>appended yes 2>&1 no > stdout maybe 2>& 4 | cat 2>| cat
+' | ../test/root/bin/fish_indent
diff --git a/tests/indent.out b/tests/indent.out
index b2eaf08a..6b38a72f 100644
--- a/tests/indent.out
+++ b/tests/indent.out
@@ -91,3 +91,7 @@ while begin
end
echo hi
end
+
+Test redir formatting
+
+echo <stdin >>appended yes 2>&1 no >stdout maybe 2>&4 | cat 2>| cat