Skip to content
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

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

Closed
sylvestre opened this issue Oct 14, 2023 · 2 comments
Closed

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

sylvestre opened this issue Oct 14, 2023 · 2 comments
Labels

Comments

@sylvestre
Copy link
Contributor

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
@cakebaker
Copy link
Contributor

Duplicate of #5377

@cakebaker cakebaker marked this as a duplicate of #5377 Oct 14, 2023
@cakebaker cakebaker closed this as not planned Won't fix, can't repro, duplicate, stale Oct 14, 2023
@sylvestre
Copy link
Contributor Author

sorry :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Status: Done
Development

No branches or pull requests

2 participants