📰 2026-05-02 19:30 更新
🔸 Why are there both TMP and TEMP environment variables? (2015) / 为什么同时存在TMP和TEMP环境变量? ( 2015 )
🔗 Why are there both TMP and TEMP environment variables? (2015)
🔥 43 points
原文:
If you snoop around your environment variables, you may notice that there are two variables that propose to specify the location of temporary files. There is one called TMP and another called TEMP. Why two? And if they disagree, then who’s right? Rewind to 1973. The operating system common on microcomputers was CP/M. The CP/M operating system had no environment variables. That sounds like a strange place to start a discussion of environment variables, but it’s actually important. Since it had…
译文:
如果您窥探环境变量,您可能会注意到有两个变量建议指定临时文件的位置。有一种叫做TMP ,另一种叫做TEMP。为什么是两个?如果他们不同意,那么谁是对的?回溯到1973年,微机上常见的操作系统是CP/M , CP/M操作系统没有环境变量。这听起来像一个奇怪的地方开始讨论环境varia 但它实际上很重要。既然有……
自动更新 · 正文抓取 · 双语翻译