Repository navigation
feat(builtins): add pr - #2571
Merged
Merged
Conversation
chaliy
force-pushed
the
claude/pr-builtin
branch
from
October 7, 2026 15:50
cfcb9b9 to
44f13f6
Compare
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
bashkit | a74ccc3 | Commit Preview URL Branch Preview URL |
Oct 07 2026, 04:35 PM |
chaliy
force-pushed
the
claude/pr-builtin
branch
from
October 7, 2026 16:04
44f13f6 to
c85cff2
Compare
pr paginates and columnates: page headers with date, title and page number, -COLUMN down/across with last-page balancing, -m, -n, -d, -o, -s/-S/-J, -l/-w/-W, +FIRST:LAST, -D, -h, -F. Written from GNU pr's observable behavior (not its GPL source) and byte-identical to it on an 88-case differential corpus, including the multi-column tab padding. Header dates use the sandbox clock and TZ. Output capped at 16 MiB. Claude-Session: https://claude.ai/code/session_019aFikmptPc91Fj4N2iDXQA
chaliy
force-pushed
the
claude/pr-builtin
branch
from
October 7, 2026 16:34
c85cff2 to
a74ccc3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Михайло · project thread
What changed
New
prbuiltin, which paginates and columnates text. It supports:-COLUMNdown or across (-a), balancing the columns on the last page-mmerge-n,-N,-d,-o-s,-S,-J-l,-w,-W+FIRST:LAST,-D,-h,-FOutput is byte-identical to GNU
pron an 88-case differential corpus. That includes GNU's tab padding in multi-column output and its error messages. Header dates come from the sandbox clock andTZ, the same onesdateuses.Why
Step 4 of the level-up roadmap:
prwas one of the missing coreutils. It was written from GNU's observable behavior, not from GNU's source, because that source is GPL and bashkit is MIT.Before / After
Before:
After:
GNU
prprints the same bytes.Risk
-eand-iare not implemented (L-PR-001).Checklist
pr.test.shwith 25 cases checked against real bash, plus unit tests)https://claude.ai/code/session_019aFikmptPc91Fj4N2iDXQA
Generated by Claude Code