2
0
Fork 0
mirror of https://github.com/nushell/nushell synced 2025-02-18 23:18:40 +00:00
nushell/tests/shell
Devyn Cairns ea8c4e3af2
Make pipe redirections consistent, add err>| etc. forms ()
# 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 .

# 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 () 2024-06-12 20:04:12 -05:00
pipeline Make pipe redirections consistent, add err>| etc. forms () 2024-07-11 07:16:22 +08:00
mod.rs Make which-support feature non-optional () 2024-06-12 20:04:12 -05:00
repl.rs Fix merging child stack into parent () 2024-04-06 15:03:22 +00:00