Timeline for Pseudoportable C script pattern - follow-up
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Mar 1, 2021 at 10:43 | history | edited | Toby Speight | CC BY-SA 4.0 |
trap handlers don't affect the exit status
|
Mar 1, 2021 at 8:49 | vote | accept | coderodde | ||
Aug 11, 2017 at 15:03 | comment | added | Toby Speight |
I meant only non-POSIX shell features, and I've clarified that. I didn't realise that mktemp is non-POSIX; it could be hard to create a workaround in portable shell (and we can't make the workaround as a C program, because we need it before we can safely compile C!).
|
|
Aug 11, 2017 at 15:00 | history | edited | Toby Speight | CC BY-SA 3.0 |
Show how to tell GCC where the source is - useful for Emacs 'next-error' or anything else that parses error messages
|
Aug 11, 2017 at 14:51 | comment | added | Edward |
Also, a small nit, but technically mktemp is not POSIX and, for example, did not come with Solaris SunOS 9. Still, this is a nice refinement! I wonder if it's possible to do with strictly POSIX only? E.g. use c99 and figure out a different method for a temporary name.
|
|
Aug 11, 2017 at 14:37 | history | edited | Toby Speight | CC BY-SA 3.0 |
Recommend lower-case; fill in the details of the compilation command.
|
Aug 11, 2017 at 14:06 | history | answered | Toby Speight | CC BY-SA 3.0 |