From 4ff8e6e7818747d805ac44be0a36aedef4deaa5c Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Tue, 5 Apr 2016 15:43:24 -0700 Subject: change how redirections are formatted Modify `fish_indent` to emit redirections without a space before the target of the redirection; e.g., "2>&1" rather than "2>& 1" as the former is clearer to humans. Fixes #2899 --- tests/indent.out | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/indent.out') 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 >appended yes 2>&1 no >stdout maybe 2>&4 | cat 2>| cat -- cgit v1.2.3