5 ms·
I couldn't see GNU Hello mentioned in the article or comments so far. I wonder how it fares bug-wise. The GNU Hello program produces a familiar, friendly greet
by yesenadam 5y ago
I couldn't see GNU Hello mentioned in the article or comments so far. I wonder how it fares bug-wise.
The GNU Hello program produces a familiar, friendly greeting. Yes, this is another implementation of the classic program that prints “Hello, world!” when you run it.
However, unlike the minimal version often seen, GNU Hello processes its argument list to modify its behavior, supports greetings in many languages, and so on. The primary purpose of GNU Hello is to demonstrate how to write other programs that do these things; it serves as a model for GNU coding standards and GNU maintainer practices.
https://www.gnu.org/software/hello/ https://www.gnu.org/software/hello/
- mcbrit 5y agoThis is explicitly called out and handled in lines 151-155. https://git.savannah.gnu.org/cgit/hello.git/tree/src/hello.c https://git.savannah.gnu.org/cgit/hello.git/tree/src/hello.c Here's the comment: /* Even exiting has subtleties. On exit, if any writes failed, change the exit status. The /dev/full device on GNU/Linux can be used for testing; for instance, hello >/dev/full should exit unsuccessfully. This is implemented in the Gnulib module "closeout". */
- pixelbeat__ 5y agoJim Meyering's discussion on how this is handled usually in GNU programs https://www.gnu.org/ghm/2011/paris/slides/jim-meyering-goodbye-world.pdf https://www.gnu.org/ghm/2011/paris/slides/jim-meyering-goodb...
- yesenadam 5y agoThank you.