待验证50% 置信事实精确时间
子进程从父Shell继承环境变量,新开终端窗口是全新Shell进程,其环境变量来自系统配置文件而非上一窗口手动设置的值
1
来源数
50%
置信度
长期有效
时效性
2026/7/24
首次发现
来源
相关事实
待验证Environment variables set with 'set' (CMD) or '$env:' (PowerShell) only take effect in the current process and its child processes63% 相似待验证OpenClaw在Windows环境下后台启动需要使用 Start-Process -WindowStyle Hidden -FilePath "openclaw" -ArgumentList "gateway" 命令62% 相似待验证On Windows, the Path environment variable tells the system which directories to search for executable files when a command is typed in the terminal.57% 相似待验证Trae的刷新模式可能以非标准方式(如non-interactive或non-login模式)启动Shell,导致跳过.bashrc/.zshrc等初始化文件57% 相似待验证在Windows系统上使用多进程时需要将代码放在if __name__ == '__main__'保护块中,否则会触发递归子进程创建错误57% 相似
引用此条事实
Stable URI
https://kongchang.com/claim/609036API
curl https://kongchang.com/api/v1/knowledge/claims/609036MCP
get_claim(id=609036)