Sv: TMP/TEMP environment variable and /tmp
Andrey Repin
anrdaemon@yandex.ru
Sun Sep 20 07:20:22 GMT 2020
Greetings, Kristian Ivarsson via Cygwin!
> If the user sets its TMP-variable to "C:\Jabba Dabba Dooo" or "/jabba dabba
> doo", I expect the value of getenv("TMP") should be just that and regardless
> of OS the value returned is whatever the variable is set to and not magically changed to "/tmp"
That's how it works. It's just that Cygwin provides /tmp aliasing as a mount
point option for a better usage experience.
See /etc/fstab - the usertemp FS pseudotype.
I.e.
none /tmp usertemp binary,nouser,posix=1 0 0
If yo have a different TMP (than TEMP), check your shell startup for any
redefinitions.
--
With best regards,
Andrey Repin
Sunday, September 20, 2020 10:16:54
Sorry for my terrible english...
More information about the Cygwin
mailing list