Re:Stop using tail -f (mostly)
by acdha on Monday March 30, 2015 @02:39PM
(#9291595)
Is there a bug report open for that yet? FreeBSD has this so they should be able to resync easily enough
[ Parent
| on HN ]
Why would they? It's not needed - '-F', '--retry' and the like are redundant. IMVHO, OpenBSD's '-f' behaviour should have been the default elsewhere, too. How many times in the past have you deliberately followed the file descriptor (coreutils' default '-f' behaviour) instead of its name? Every single time I used it in the past on Linux, this is what I thought:
"For f***** sake! I should have used '-F'! Arghhh...!"
Obviously, I'm paraphrasing ;^)I'm not saying that the OpenBSD behaviour is wrong but that compatibility is a worthwhile goal. Adding a simple -F alias for their existing behaviour would allow people's habits & shell scripts to just work without changes.
Re:Stop using tail -f (mostly)
by currysausage on Monday March 30, 2015 @07:09PM
(#9293242)
Why? OpenBSD's implementation makes sense to me.
> FreeBSD has this
OpenBSD ≠ FreeBSD, and that's fine.
I don't think its a bug
If you want to be pedantic, no, it's not a bug but in the vast majority of the software world people use the term “bug tracker” to refer to a system which also tracks new work which isn't strictly a defect.
And, since we're being pedantic, when I said “vast majority of the software world”, that includes the OpenBSD project:
“Sending in bug reports
If possible, use the sendbug(1) command to get the bug into our tracking system. Sendbug requires that your system can properly send Internet email. If you cannot use sendbug on a functional OpenBSD machine, please send your bug report to [email protected].
Perhaps what you are sending in is a feature request, not necessarily a bug. New features are accepted, especially with code that implements your suggested new feature.”
Ok, but it has an -f behavior that seems to do the right thing. I don't think I would file a request to add flags that aren't needed.
I'm not being "pedantic", I just don't think there is anything to change.
The idea is that if everyone else is converging on "tail -F" supporting that as an alias means that people's habits & shell scripts just work without modification. That seems worth adding a single line to a switch statement to me.
Me either, but bug reports are used for feature requests too, not only bugs.