Skip to content

expr 3 \| 1W + 4 fails when it should return 3 #5406

@sylvestre

Description

@sylvestre

With our impl:

$ ./target/debug/coreutils expr  3 \| 1W + 4
expr: syntax error (first RPN token does not represent the root of the expression AST)

(side note, we could improve our default error message here)

With GNU:

/usr/bin/expr  3 \| 1W + 4
3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions