Re:Why are there both TMP and TEMP environment variables? (2...
by lelanthran on Saturday May 02, 2026 @06:23AM
(#47985093)
>One day a small file turned up in everyone's network home directory called null. A *nix person had evidently had a go at writing a .bat file
I assume that they first tried /dev/null which failed, so then moved onto just plain null?
Otherwise it would not make sense that a unix programmer did this. More likely ula dos programmer misspelled NUL as null.
Re:Why are there both TMP and TEMP environment variables? (2...
by rep_lodsb on Saturday May 02, 2026 @07:35AM
(#47985485)
Fun fact: "/dev/nul" (with only one L) would have worked, even if there is no directory with that name.
That's been a feature since DOS 2.0, there was even an undocumented option AVAILDEV to make the prefix mandatory, instead of having device names present everywhere. But it broke the common trick used to detect if a directory exists ("if exist c:\some\path\nul").
Re:Why are there both TMP and TEMP environment variables? (2...
by 3form on Saturday May 02, 2026 @06:57AM
(#47985281)
Unix programmer remembered that in there's no /dev/null in DOS and that it's something shorter, and tried null which worked. Didn't check the directory contents afterwards. So basically your first sentence - doesn't seem at all unlikely to me. (I mean, I think it happened to me at least once too)
Re:Why are there both TMP and TEMP environment variables? (2...
by jtoledo on Saturday May 02, 2026 @06:37AM
(#47985179)
I've already created a 'NULL' file, but it was not a Unix thing... It was just because I got confused if it was NULL as in the programming languages I usually use.
Re:Why are there both TMP and TEMP environment variables? (2...
by cachius on Saturday May 02, 2026 @07:15AM
(#47985367)
What text was in there that he tried to discard?
Re:Why are there both TMP and TEMP environment variables? (2...
by drfloyd51 on Saturday May 02, 2026 @09:22AM
(#47986194)
Asking the real questions!
Re:Why are there both TMP and TEMP environment variables? (2...
by ale42 on Saturday May 02, 2026 @04:36PM
(#47990237)
Some Logitech drivers installation program (not sure which version or what product) did it too... found a file named NULL on my HD, and of course there was a BAT file with something > NULL.
Why do we need to adopt extant standards? (I was going to ask, why standardise? But realised that might confound the North Americans. : )