You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Documentation on redirect doesn't match behaviour #2152
Note that file redirections are scoped to an expression and apply to all external commands in the expression. In the example below, `out.txt` will contain `hello\nworld`:
> let text = "hello\nworld";
($text | head -n 1; $text | tail -n 1) o> out.txt
hello
> cat out.txt
world
> nu --version
0.112.1
File redirections (o>, e>, o+e>, etc.) now apply to all external commands inside an expression.
I searched this repository for e>, o>, err>, out>, subexpression, piping. I was not able to identify release notes that document changed behavior after 0.92.0, and checked the 0.92.0 PR for linked followups or comments.
Activity
[-]Documentation doesn't match with behaviour[/-][+]Documentation on redirect doesn't match behaviour[/+]fdncred commentedon Apr 15, 2026
I wouldn't be surprised. Code changes fast around here.
Kissaki commentedon Jul 11, 2026
nushell/nushell#17604 also reported this.
Aside from the reported book/stdout_stderr_exit_codes.html#file-redirections, related docs:
book/pipelines.html#semicolonsbook/thinking_in_nu.html#single-return-value-per-expressionThe 0.92.0 release notes
I searched this repository for
e>,o>,err>,out>,subexpression,piping. I was not able to identify release notes that document changed behavior after 0.92.0, and checked the 0.92.0 PR for linked followups or comments.Possibly related?:
As for current behavior, as this submission documents:
Only the last command in a subexpressions in parentheses gets piped out.
Fix outdated output redirection docs
Fix outdated output redirection docs (nushell#2200)