Hacker News new | ask | show | jobs
by pjmlp 2501 days ago
You mean the myth of the UNIX way, never followed upon commercial UNIXes and somehow became a cargo cult on FOSS community only thank to a book of UNIX idols?
2 comments

Right, the only true Unix philosophy which ever described reality was "worse is better."

Just look at the GNU coding guidelines, it explicitly mentions that GNU tools are not to use static buffers and silently truncate long lines. Why? Because that's what proprietary Unix implementations were doing at the time! Silent truncation of long input lines! Is that "doing one thing and doing it well" (DOTADIW)? Hell no!

DOTADIW is an ahistorical description of Unix. A humble-brag with little basis in reality.

As I'm new to this could you give a reference to those very gnu guidelines so I could see for myself?

And also where those guidelines say that silent truncation of long lines should occur?

thanks

Sure, no problem:

>"Avoid arbitrary limits on the length or number of any data structure, including file names, lines, files, and symbols, by allocating all data structures dynamically. In most Unix utilities, “long lines are silently truncated”. This is not acceptable in a GNU utility."

https://www.gnu.org/prep/standards/standards.html#Semantics

So perhaps DOTADIW is a GNU philosophy, because it's one of the reasons GNU became so popular. Proprietary unix tools often did one thing and did it poorly, making GNU tools a breath of fresh air.

https://www.gnu.org/prep/standards/standards.html#Semantics

I think you misinterpreted parent’s statement, though, and/or they mistyped. The GNU Coding Standards says to not use static buffers, nor should GNU programs silently truncate long lines.

Not to mention the mess with glibc and their war against anyone who wants to do static linking. There's a long history of user-hostile behavior on various commercial and open-source Unices, usually to serve some outside agenda.
I notice you make a claim then don't give any backup. Could you expand on this, for me as a unix naif? thanks