mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 01:51:14 -03:00
Bring back caret redirections under a feature flag
This partially reverts 5b489ca30f, with
carets acting as redirections unless the stderr-nocaret flag is set.
This flag is off by default but may be enabled on the command line:
fish --features stderr-nocaret
This commit is contained in:
1
tests/invocation/features-nocaret3.invoke
Normal file
1
tests/invocation/features-nocaret3.invoke
Normal file
@@ -0,0 +1 @@
|
||||
--features 'no-stderr-nocaret' -c 'echo -n careton:; echo ^/dev/null'
|
||||
1
tests/invocation/features-nocaret3.out
Normal file
1
tests/invocation/features-nocaret3.out
Normal file
@@ -0,0 +1 @@
|
||||
careton:
|
||||
1
tests/invocation/features-nocaret4.invoke
Normal file
1
tests/invocation/features-nocaret4.invoke
Normal file
@@ -0,0 +1 @@
|
||||
--features ' stderr-nocaret' -c 'echo -n "caretoff: "; echo ^/dev/null'
|
||||
1
tests/invocation/features-nocaret4.out
Normal file
1
tests/invocation/features-nocaret4.out
Normal file
@@ -0,0 +1 @@
|
||||
caretoff: ^/dev/null
|
||||
Reference in New Issue
Block a user