Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ls: compute the correct exit code#6173

Merged
sylvestre merged 2 commits intouutils:mainfrom
BenWiederhake:dev-ls-exit-code
Apr 1, 2024
Merged

ls: compute the correct exit code#6173
sylvestre merged 2 commits intouutils:mainfrom
BenWiederhake:dev-ls-exit-code

Conversation

@BenWiederhake
Copy link
Collaborator

Turns out, ls's exit code is actually quite complex, and convincing clap to do what we need is not trivial.

#6162 grew too much, and in particular ls is a big hassle. So let's deal with ls in isolation first, and I'll rebase #6162 once this PR is merged.

Note in particular that this seems to be the only tool where invalid
stringly-enum values cause a different exit code than invalid arguments.
@BenWiederhake
Copy link
Collaborator Author

Changes since last push:

  • Rebased on current main
  • Added a short explanation how each command.try_get_matches_from match-arm is reached; thanks @sylvestre!

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.

2 participants

Comments