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
The issue is that grep, rg and echo without arguments will exit without reading input and some shells are aggressive about closing the pipe immediately afterward.
Consider these commands:
$ echo "hello" | grep
Usage: grep [OPTION]... PATTERN [FILE]...
Try 'grep --help' for more information.
Here we see that grep doesn't wait for stdin and instead exits immediately.
The fix for rustc is to either:
a) not use the println! macro (which panics on all errors)
b) change the println! macro in std to ignore pipe closing errors (this would require the libs-api team to agree with the change)
rustc
panics when its output is being piped into other commands.I tried this code:
Meta
Bug exists on both stable and nightly builds.
Backtrace
The text was updated successfully, but these errors were encountered: