TIL: mktemp isn’t POSIX. I shall now sneak off and go and update a bunch of scripts! 😉


· · Web · 1 · 0 · 0


While not POSIX, mktemp works on GNU, OSX, BusyBox, *BSD and Solaris, as noted by shellcheck itself.

POSIX is one goal, portability is another and the two aren't necessarily 1:1.

@tomasino Yes this is true, it is universal and therefore a standard (if only de facto) but there is a certain pervrse satisfaction of being completely POSIX compliant in scripts 😉

@tomasino Thanks for the link to, though I should note I am having issues withthe certificate on that not being valid (as I write this).

@ruari yeah, i probably should have linked to the shellcheck github instead. Their cert is expired

Sign in to participate in the conversation

This is the personal server of Ruari.