Skip to content

feat(builtins): implement seq builtin#261

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

feat(builtins): implement seq builtin#261
chaliy merged 1 commit intomainfrom
claude/bashkit-bash-compatibility-BsDKD

Conversation

@chaliy
Copy link
Contributor

@chaliy chaliy commented Feb 25, 2026

Summary

  • Implement seq builtin for generating numeric sequences
  • Supports seq LAST, seq FIRST LAST, seq FIRST INCREMENT LAST
  • Options: -w (equal-width zero padding), -s STRING (custom separator)
  • Handles integers, negative numbers, and floating point
  • 12 spec tests covering basic, decrement, negative, width, separator, error 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 918→930, Total 1336→1348)

Supports seq LAST, seq FIRST LAST, seq FIRST INCREMENT LAST,
-w (equal width padding), -s (custom separator). Handles integers
and floating point values with 1M iteration safety limit.

https://claude.ai/code/session_012rzB3FRw7yoQWCG1mxyW7J
@chaliy chaliy merged commit a12ae84 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