Repository navigation
One-liners read files and edit them in place: operands after -n/-p code, filename, fnr and -i (D222, #958) - #3460
Merged
Merged
Conversation
added 3 commits
November 18, 2026 22:47
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.
Closes #958. Delegated (D98; D222 records the brief): a CLI surface, easy to reverse, prediction 80%.
-nor-pcode are read in order in place of stdin. The one-liner's source is the flag's value, so an operand is never the source;-ealone still refuses one.filenameandfnrare bound when the code names them and does not declare its own, aslastis.nrcounts across all files;lastis the final line of the last file.-iwith-pwrites each file back through a sibling (<file>.with-tmp) and a rename; a file that ended without a newline still does.-p -i CODEand-i -p CODEare both accepted.-iwith-n, with-ealone or with no file is refused.Spec v7.68 (§18.5b.3 and the one-liner document, marked delegated); the flag inventory and the flag table list
-i; the instructions' parity table and the gap list are brought up to date. Eight harness cases.Battery green on the branch tip.