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, Aug 20, 12:17 AM
Unknown Object (File)
Mon, Aug 10, 9:43 PM
Unknown Object (File)
Sat, Aug 8, 4:14 PM
Unknown Object (File)
Sat, Aug 8, 2:06 PM
Unknown Object (File)
Sat, Aug 8, 9:32 AM
Unknown Object (File)
Fri, Aug 7, 9:01 PM
Unknown Object (File)
Fri, Jul 31, 1:26 AM
Unknown Object (File)
Tue, Jul 28, 11:22 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 66005
Build 62888: arc lint + arc unit