Repository navigation
fix(opt): pseudo-options batch 2 (#1411); nice command boundary (#1408); dirname // (#1337) - #1420
Merged
Merged
Conversation
Same treatment as #1355, per the verified report table: drop join --empty/-k/--key, ls --long/--long-list, timeout -f/-p/-l, cksum -q/-s/-r and cp -g declarations together with their handler read points. Every removal carries a rejection pin asserting the GNU diagnostic and exit code plus a legal-form control (join -o/-e, ls -l, timeout's real options, cksum's algorithms, cp's real flags).
nice.c parses with a leading-'+' optstring, so its own options end at the first non-option argument and the wrapped command keeps its own flags — route nice through the stop_options_after_positionals policy like env (#1353) and xargs. stdbuf already passes wrapped options through (#1375); add the path-form and bare-form regression pins from the issue probe to lock that in.
GNU reduces an all-slash operand to a single slash; the exactly-two- slash window stays preserved only when more of the path follows (dirname //a/b is still //a).
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.
Fixes #1411. Fixes #1408. Fixes #1337.
#1411 (pseudo-options batch 2, #1355 treatment): drops join
--empty/-k/--key, ls--long/--long-list, timeout-f/-p/-l, cksum-q/-s/-rand cp-g— each with a GNU rejection pin and a legal-form control. One correction to the agent draft during verification: the join-econtrol case needed-a1and a genuinely unpaired fixture (an inner join cross-matches repeated keys, so no field is ever missing); implementation behavior verified against GNU semantics manually.#1408: stdbuf already stops at the wrapped command (#1375 landed the pass-through) — regression pins added for both the path-form probe (
stdbuf -o0 ./echo -n hi) and the bare form. The real residual was nice: routed through the stop_options_after_positionals policy like env/xargs, withnice -n 5 ls -lpinning that ls keeps its own flags.#1337:
dirname //now folds to/(the exactly-two-slash window is preserved only when more path follows —dirname //a/bstays//a).Full suite on the branch: 3350 tests — 3349 passed, the 1 failure being the environment-bound
cksum.issue_1288baseline (LongPathsEnabled=0). i18n delta: none (extract diff clean).