Skip to content

tail -n 0 is not respected when -f is used #9102

@ThibF

Description

@ThibF

Expected:

$ for i in $(seq 1 5)
echo $i >> a            
$ tail -n0 -f a &
[1] 3021621
$ echo last >> a
last

Result:

$ for i in $(seq 1 5)
echo $i >> a            
$ tail -n0 -f a &
[1] 3021621
$ echo last >> a
1                                                              
2
3
4
5
last

Tested on:

$ tail --version             
tail (uutils coreutils) 0.2.2

I didn't test (yet) on 0.3 but I don't see anything on the changelog related.
It works correctly when the -n option is used with a positive integer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions