|
|
|
|
|
by knorker
1561 days ago
|
|
> a hyperbole It's not, though. This helloworld is not safe to use as part of something bigger. Like: echo header > gen.txt && ./helloworld >> gen.txt && ./upload_to_prod gen.txt
That will upload a partial file to prod, if there's any write error.> It's not meant to be part of a shell script You don't know that. And brittle pieces like this is absolutely not an uncommon source of bugs. |
|
The first piece of C code in introduction section was meant as production software? I've checked it: that section mentions typing "a.out" in the the UNIX shell to see what happens.