Skip to content

Fix seq, cut, tr integration test failures#21

Open
kelp wants to merge 1 commit intomainfrom
fix-seq-cut-tr-integration-tests
Open

Fix seq, cut, tr integration test failures#21
kelp wants to merge 1 commit intomainfrom
fix-seq-cut-tr-integration-tests

Conversation

@kelp
Copy link
Copy Markdown
Owner

@kelp kelp commented Mar 31, 2026

Summary

  • seq: Return exit 2 (misuse) for invalid flags like --invalid-flag, matching POSIX convention for argument errors
  • cut: Accept spaces as range list separators (-b '1 3 5'), matching GNU behavior
  • tr: Return exit 1 (general_error) for extra operands, matching GNU behavior

Test plan

  • just it-util seq — 19/19 passed
  • just it-util cut — 70/70 passed
  • just it-util tr — 54/54 passed
  • zig build test — 1984 passed, 27 skipped

seq: return exit 2 (misuse) for invalid flags, matching POSIX
convention for argument errors.

cut: accept spaces as range list separators (e.g., -b '1 3 5'),
matching GNU behavior.

tr: return exit 1 (general_error) for extra operands, matching
GNU behavior.
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.

1 participant