有什么区别:
a=b
和
export a=b
在 bash 中?
我知道他们都定义了环境变量,但我不完全理解其中的区别。
bash shell environment-variables process
我正在运行 Red Hat Linux Enterprise 5;我总是使用 export 命令来设置环境变量。
有没有其他设置环境变量的方法,它们的优点/缺点是什么?
linux environment-variables redhat-enterprise-linux
environment-variables ×2
bash ×1
linux ×1
process ×1
redhat-enterprise-linux ×1
shell ×1