As the title suggests — can I be reasonably sure that mktemp will exist on any unix-y operating system I'm likely to encounter?
mktemp
POSIX does not seem to specify mktemp(1).
It looks like most modern systems have it, but the available functionality and the semantics of the options vary between implementations (so particular invocations may not be portable):
So if you want a portable solution you may need to stick to functionality and options that mean the same thing on all of your platforms of interest.
2.1m questions
2.1m answers
60 comments
57.0k users