Skip to content

feat(builtins): implement tac and rev builtins#262

Merged
chaliy merged 1 commit intomainfrom
claude/bashkit-bash-compatibility-BsDKD
Feb 25, 2026
Merged

feat(builtins): implement tac and rev builtins#262
chaliy merged 1 commit intomainfrom
claude/bashkit-bash-compatibility-BsDKD

Conversation

@chaliy
Copy link
Contributor

@chaliy chaliy commented Feb 25, 2026

Summary

  • Implement tac builtin: reverse line order (opposite of cat)
  • Implement rev builtin: reverse characters on each line
  • Both support stdin and file arguments
  • 11 spec tests covering basic usage, files, edge cases

Test plan

  • cargo test --all-features passes
  • cargo clippy --all-targets --all-features -- -D warnings clean
  • cargo fmt --check clean
  • Spec counts updated (Bash 930→941, Total 1348→1359)

tac: reverses line order (opposite of cat)
rev: reverses characters on each line
Both support stdin and file arguments.

https://claude.ai/code/session_012rzB3FRw7yoQWCG1mxyW7J
@chaliy chaliy merged commit 7c1e79c into main Feb 25, 2026
16 checks passed
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