Skip to content

Follow mode in combination with fifo pipe results in unexpected behavior #244

@ton

Description

@ton

I've read in various places how less +F can be used as a improvement over tail -f. Today I had the following use case that does not seem to work as expected, and I'm pretty sure I've used it in the past where it did work:

mkfifo less-pipe
less +F -f less-pipe

Then in some other terminal:

echo foo > less-pipe
echo bar > less-pipe

After echo'ing "foo" to the pipe, less will print END and no longer show data coming in over the pipe (I remember in the past seeing Waiting for more data...). So it seems follow mode is not active at all. Is this a bug or expected behavior?

I'm using less version 590.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions