Hacker News new | ask | show | jobs
by tempguy9999 2501 days ago
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

2 comments

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.