Skip to content

Carriage Return (\r) is messing up Mac (not tail's fault) #159

@zvictor

Description

@zvictor

My scripts fail to print the content of the files that tail is reading from. As result, many lines simply do not appear in console.
I am running macOS Monterey 12.5 (21G72).

Doing some research I found this report that describes precisely my situation.
I could also do some quite extensive debugging and confirmed that there is nothing wrong with tail. It's node that "eats" lines out when \r is present.

To workaround this issue I have set separator: /\r|\n/, and the problem is now gone.
The question left here is: should we change the default separator value to better accommodate Mac users?

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