Skip to content

head: accept the l suffix in the obsolete -NUM syntax - #16610

Merged
cakebaker merged 2 commits into
uutils:mainfrom
binhvq:head-obsolete-lines-suffix
Nov 18, 2026
Merged

cakebaker merged 2 commits into
uutils:mainfrom
binhvq:head-obsolete-lines-suffix

Conversation

@binhvq

@binhvq binhvq commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Closes #16609

head -2l failed with parse error. l now selects lines, like c, b, k and m select bytes. It keeps the multiplier of an earlier suffix, so -1bl is 512 lines and -1lb is 512 bytes.

@github-actions

Copy link
Copy Markdown

Binary size comparison:

Individual binary size comparison VS main (threshold: >=5% AND >=4 KB).

Total size of compared binaries: 155.49 MB (+108 KB, +0.07%)

Significant per-binary changes:
  env     1.20 MB ->    1.28 MB  (+80 KB, +6.51%)

@github-actions

Copy link
Copy Markdown

GNU testsuite comparison:

Congrats! The gnu test tests/env/env0-from is no longer failing!

@cakebaker
cakebaker merged commit ff000c2 into uutils:main Nov 18, 2026
99 of 102 checks passed
@cakebaker

Copy link
Copy Markdown
Contributor

Thanks!

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.

head: obsolete -NUM syntax rejects the l suffix

2 participants