New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support o>>
, e>>
, o+e>>
to append output to an external file
#10764
Conversation
e5986bf
to
32ade31
Compare
This reverts commit 1aa3897.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just tried out the new feature and, as the OP of the issue this addresses, i'm very happy to see it in Nushell from now on 👍
thanks @WindSoilder 🙏
once the review thread gets sorted out, please feel free to land the PR, i'm all for it 😌
Since we have a couple weeks, let's run with this and see how it goes. |
I love seeing improvements to redirection. Thanks for all your work in this area, @WindSoilder ! |
…ushell#10764) # Description Close: nushell#10278 This pr introduces `o>>`, `e>>`, `o+e>>` to allow redirection to append to a file. Examples: ```nushell echo abc o>> a.txt echo abc o>> a.txt cat asdf e>> a.txt cat asdf e>> a.txt cat asdf o+e>> a.txt ``` ~~TODO:~~ ~~1. currently internal commands with `o+e>` redirect to a variable is broken: `let x = "a.txt"; echo abc o+e> $x`, not sure when it was introduced...~~ ~~2. redirect stdout and stderr with append mode doesn't supported yet: `cat asdf o>>a.txt e>>b.ext`~~ ~~For these 2 items, I'd like to fix them in different prs.~~ Already done in this pr
…ushell#10764) # Description Close: nushell#10278 This pr introduces `o>>`, `e>>`, `o+e>>` to allow redirection to append to a file. Examples: ```nushell echo abc o>> a.txt echo abc o>> a.txt cat asdf e>> a.txt cat asdf e>> a.txt cat asdf o+e>> a.txt ``` ~~TODO:~~ ~~1. currently internal commands with `o+e>` redirect to a variable is broken: `let x = "a.txt"; echo abc o+e> $x`, not sure when it was introduced...~~ ~~2. redirect stdout and stderr with append mode doesn't supported yet: `cat asdf o>>a.txt e>>b.ext`~~ ~~For these 2 items, I'd like to fix them in different prs.~~ Already done in this pr
Description
Close: #10278
This pr introduces
o>>
,e>>
,o+e>>
to allow redirection to append to a file.Examples:
TODO:1. currently internal commands witho+e>
redirect to a variable is broken:let x = "a.txt"; echo abc o+e> $x
, not sure when it was introduced...2. redirect stdout and stderr with append mode doesn't supported yet:cat asdf o>>a.txt e>>b.ext
For these 2 items, I'd like to fix them in different prs.Already done in this pr