nushell/tests/shell
Devyn Cairns ea8c4e3af2
Make pipe redirections consistent, add err>| etc. forms (#13334)
# Description

Fixes the lexer to recognize `out>|`, `err>|`, `out+err>|`, etc.

Previously only the short-style forms were recognized, which was
inconsistent with normal file redirections.

I also integrated it all more into the normal lex path by checking `|`
in a special way, which should be more performant and consistent, and
cleans up the code a bunch.

Closes #13331.

# User-Facing Changes
- Adds `out>|` (error), `err>|`, `out+err>|`, `err+out>|` as recognized
forms of the pipe redirection.

# Tests + Formatting
All passing. Added tests for the new forms.

# After Submitting
- [ ] release notes
2024-07-11 07:16:22 +08:00
..
environment Make which-support feature non-optional (#13125) 2024-06-12 20:04:12 -05:00
pipeline Make pipe redirections consistent, add err>| etc. forms (#13334) 2024-07-11 07:16:22 +08:00
mod.rs Make which-support feature non-optional (#13125) 2024-06-12 20:04:12 -05:00
repl.rs Fix merging child stack into parent (#12426) 2024-04-06 15:03:22 +00:00