Re:Unix V5, OpenBSD, Plan 9, FreeBSD, and GNU Coreutils Impl...
by caf on Sunday February 22, 2015 @05:55AM
(#9089020)
The GNU echo is designed to be useable on a variety of systems which had different traditional behaviours - this comment in the source code is instructive:
(BSD systems supported suppressing newline with -n; UNIX System V systems supported \ escape sequences; POSIX came later and allowed either unless the XSI option is supported).
[ Parent
| on HN ]
Re:Unix V5, OpenBSD, Plan 9, FreeBSD, and GNU Coreutils Impl...
by muyuu on Sunday February 22, 2015 @07:22AM
(#9089141)
Yep, including all that hydra-style-compatibility as part of the very base implementation of anything, is part of what makes GNU code the way it is.
I mean... in main() there's a labeled goto for "just_echo" - even that section alone has something like 6 or 7 indentation levels. If I was writing satire code of GNU style I'd probably wouldn't have gone so far. Hehehe.