3 ms·
> As if C:\TEMP or %tmpdir% were any better. I mean, yes? %tmp% is in the user's directory, not accessible by the world.
by tredre3 2y ago
> As if C:\TEMP or %tmpdir% were any better.
I mean, yes? %tmp% is in the user's directory, not accessible by the world.
- anthk 2y agoTMPDIR can be trivially set at $HOME/tmp too with just a file at /etc/profile
- int_19h 2y agoBut how many things on Unix hardcode /tmp though? On DOS it wasn't a thing because it didn't have a standard temp directory to begin with, so when the need arose, it was bolted on in an adhoc way (I remember the apps couldn't even agree on whether it should be %TEMP% or %TMP% or something else). Windows introduced it as a proper first party concept, but then moved it around so much that you pretty much had to use the API to retrieve the actual value if you wanted it to work. And then NT made that API return a path to a per-user directory by default.
- anthk 2y agoMost things in Unix are libre software. Recompiling them to use another path it woudn't be rocket science.