Skip to content

rustc broken pipe panic when I piped a wrong command #30972

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
lilianmoraru opened this issue Jan 17, 2016 · 1 comment
Closed

rustc broken pipe panic when I piped a wrong command #30972

lilianmoraru opened this issue Jan 17, 2016 · 1 comment

Comments

@lilianmoraru
Copy link

I was trying to get the version of the rust compiler I have:

rustc -V | cut -d '\(' -f 2 | cut -d ' ' -f 1

The issue is obviously in \( (was thinking regex) which should be swapped with (.
And yes, it's a "broken pipe" but I've never seen an application react like this to a wrong command being piped(And it's not rustc who receives something from the pipe, it's another application).

cut: the delimiter must be a single character
Try 'cut --help' for more information.
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
@alexcrichton
Copy link
Member

I believe this is a dupe of #14505, so closing in favor of that, but thanks for the report!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants