Skip to content

Fix seq, cut, tr integration test failures#21

Closed
kelp wants to merge 1 commit into
mainfrom
fix-seq-cut-tr-integration-tests
Closed

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

Conversation

@kelp

@kelp kelp commented Mar 31, 2026

Copy link
Copy Markdown
Owner

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.
@kelp

kelp commented May 27, 2026

Copy link
Copy Markdown
Owner Author

Already on main. cut accepts space-separated ranges, seq returns misuse on unknown flags. tr extra-operand handling was harmonized differently but behavior is fixed.

@kelp kelp closed this May 27, 2026
@kelp
kelp deleted the fix-seq-cut-tr-integration-tests branch May 27, 2026 14:26
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