Page MenuHomeFreeBSD

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

Authored by des on Aug 6 2025, 12:10 PM.
Tags
None
Referenced Files
F151288762: D51757.id159841.diff
Tue, Apr 7, 8:43 AM
Unknown Object (File)
Sun, Apr 5, 9:00 PM
Unknown Object (File)
Sun, Mar 22, 4:14 AM
Unknown Object (File)
Feb 28 2026, 8:05 PM
Unknown Object (File)
Feb 28 2026, 3:57 PM
Unknown Object (File)
Feb 22 2026, 12:03 AM
Unknown Object (File)
Feb 21 2026, 4:40 PM
Unknown Object (File)
Feb 8 2026, 10:45 AM
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