-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
tee
doesn't work within a loop
#12862
Comments
Any ideas/thoughts @devyn? |
I believe this is an issue with expressions in > for idx in 1..5 { echo "hello" | tee { save -a hello.log } | print }
╭───┬───────╮
│ 0 │ hello │
╰───┴───────╯
╭───┬───────╮
│ 0 │ hello │
╰───┴───────╯
╭───┬───────╮
│ 0 │ hello │
╰───┴───────╯
╭───┬───────╮
│ 0 │ hello │
╰───┴───────╯
╭───┬───────╮
│ 0 │ hello │
╰───┴───────╯
Of course, at the moment, the |
Right, 1..5 | each { echo "hello" | tee { save -a hello.log } } |
This issue can be closed. |
Thanks, ping us on discord if this needs to be reopened. |
Question
Hi there! I have a question about
tee
's behaviorproduces
But
prints nothing.
Both of them do save the message(s) into hello.log. Any advice would be greatly appreciated!
Additional context and details
No response
The text was updated successfully, but these errors were encountered: