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?
My scripts fail to print the content of the files that
tailis 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\ris 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
separatorvalue to better accommodate Mac users?