Page MenuHomeFreeBSD

tail: Fix -b, -c, -n options
ClosedPublic

Authored by des on Aug 6 2025, 12:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 25, 8:07 AM
Unknown Object (File)
Mon, Jun 22, 6:57 PM
Unknown Object (File)
May 30 2026, 1:10 AM
Unknown Object (File)
May 28 2026, 10:06 PM
Unknown Object (File)
May 28 2026, 3:05 PM
Unknown Object (File)
May 27 2026, 7:43 PM
Unknown Object (File)
May 20 2026, 11:26 PM
Unknown Object (File)
May 16 2026, 11:46 PM
Subscribers

Details

Summary

Switching from strtoll() to expand_number() was improper at the time as
it only accepted positive numbers. Now that it also accepts negative
numbers, the -b option is still broken because the same commit that
switched to expand_number() also dropped the multiplication by units.

Fixes: 643ac419fafb

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable