export 在shell脚本中设置环境变量失效
Contents
shell脚本中设定的路径和环境变量只对改shell和其子shell有效。 对其父shell和其它shell无效。
解决方法:
source filename.sh
Author w1100n
LastMod 2017-12-20
shell脚本中设定的路径和环境变量只对改shell和其子shell有效。 对其父shell和其它shell无效。
解决方法:
source filename.sh
Author w1100n
LastMod 2017-12-20