git: tail(1): Almost sync with FreeBSD

Aaron LI aly at crater.dragonflybsd.org
Mon Mar 16 19:59:41 PDT 2026


commit 08f6d2a23cc12448d3714a9854ab39a300374627
Author: Aaron LI <aly at aaronly.me>
Date:   Tue Mar 17 10:00:04 2026 +0800

    tail(1): Almost sync with FreeBSD
    
    The most important change is that the '-F' flag now supports files that
    are not yet exist; it will persist in trying to open the files instead
    of giving up.  This behavior is the same as GNU tail.
    
    Another major fix is that "tail -f" now works on non-local filesystems.
    
    Things excluded from the sync:
    - long options
    - style changes
    - capability/capsicum support
    - expand_number(3) support (our libutil(3) doesn't have it)
    
    In addition, improve the BOOTSTRAPPING handling a bit.  The program
    simply exits when -f/-F is specified.

Summary of changes:
 usr.bin/tail/extern.h  |  35 ++++---
 usr.bin/tail/forward.c | 277 ++++++++++++++++++++++++++++---------------------
 usr.bin/tail/misc.c    |  32 ++++--
 usr.bin/tail/read.c    |  64 ++++++------
 usr.bin/tail/reverse.c | 191 +++++++++++++++++-----------------
 usr.bin/tail/tail.1    |  48 +++++----
 usr.bin/tail/tail.c    | 125 ++++++++++++----------
 7 files changed, 426 insertions(+), 346 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/08f6d2a23cc12448d3714a9854ab39a300374627


-- 
DragonFly BSD source repository


More information about the Commits mailing list