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)
Wed, Dec 31, 3:44 AM
Unknown Object (File)
Tue, Dec 30, 10:10 AM
Unknown Object (File)
Sat, Dec 27, 10:58 AM
Unknown Object (File)
Dec 20 2025, 7:11 AM
Unknown Object (File)
Dec 16 2025, 7:58 PM
Unknown Object (File)
Dec 13 2025, 10:17 AM
Unknown Object (File)
Dec 5 2025, 5:25 AM
Unknown Object (File)
Nov 6 2025, 5:49 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