Why are there both TMP and TEMP environment variables? (2015)

(devblogs.microsoft.com)

26 points | by ankitg12 2 hours ago ago

9 comments

  • Semaphor 13 minutes ago

    > My recollection is that most CP/M programs were configured via patching. At least that’s how I configured them. I remember my WordStar manual coming with details about which bytes to patch to do what. There was also a few dozen bytes of patch space set aside for you to write your own subroutines, in case you needed to add custom support for your printer.

    Huh. That is interesting, it was before my time, and I never heard of this :D

    • zabzonk 8 minutes ago

      Yes, it was definitely a thing. The patching code had to be in Z80/8080 machine code. I wrote higher performance keyboard and display routines for my copy of Wordstar using this feature.

  • QuantumNomad_ 8 minutes ago

    > My recollection is that most CP/M programs were configured via patching.

    I honestly would have liked that better for a lot of programs than the dotfiles they litter all over my home directory.

    • ozlikethewizard 6 minutes ago

      Yea this is something I'd love to see standardised, a distro that was able to enforce a .config folder somehow would be a winner for me. Think weve probably missed the boat though.

  • xg15 40 minutes ago

    I didn't know it was such a chaos.

    So I guess the moral of the story is: Ensure they always point to the same path, or else...

  • NSPG911 6 minutes ago

    always shove it to `%LOCALAPPDATA%/Temp`, or `~/AppData/Local/Temp`, and don't think otherwise

  • Jedd 41 minutes ago

    1995-ish. Telstra (Australia Telecom). Probably about 50k desktop computers across the organisation. 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.

    Why do we need to adopt extant standards? (I was going to ask, why standardise? But realised that might confound the North Americans. : )

    • lelanthran 19 minutes ago

      >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.

      • jtoledo 5 minutes ago

        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.