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: different stderr with expr "56" "substr" #5559

Merged
merged 2 commits into from
Nov 22, 2023

Conversation

pawelngei
Copy link
Contributor

As addressed in #5558 , this PR aligns the error messages from this implementation of expr with the GNU one.

If there are no arguments, it returns expr: missing operand.

If one of the arguments introduced arity, but there are not enough arguments, it returns expr: syntax error: unexpected argument 'substr' with the name of that argument, like substr.

Added tests.

@cakebaker cakebaker linked an issue Nov 20, 2023 that may be closed by this pull request
@uutils uutils deleted a comment from github-actions bot Nov 20, 2023
@uutils uutils deleted a comment from github-actions bot Nov 21, 2023
@sylvestre sylvestre merged commit af021e0 into uutils:main Nov 22, 2023
48 of 52 checks passed
@sylvestre
Copy link
Contributor

thanks!

@tertsdiepraam
Copy link
Member

Looks like a test from this PR is failing in some PR pipelines, which is strange because it's passing here.

@pawelngei
Copy link
Contributor Author

Could be because of the force-pushed rebase above?

In the background, I'm working on a dockerized test environment, so maybe we could have the tests behave a little more consistently.

cakebaker added a commit to cakebaker/coreutils that referenced this pull request Nov 23, 2023
cakebaker added a commit to cakebaker/coreutils that referenced this pull request Nov 23, 2023
sylvestre added a commit that referenced this pull request Nov 23, 2023
expr: adapt error messages, revert most of #5559
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

different stderr with expr "56" "substr"
3 participants