Skip to content

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

Closed
@lilianmoraru

Description

@lilianmoraru

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions