Solaris 10 OS 包含 Bash 2.0.5b。此 shell 不再自动将下列变量导出到环境:
HOSTNAME
HOSTTYPE
MACHTYPE
OSTYPE
即使 shell 为这些变量分配缺省值,此新行为也适用。
解决方法:手动导出这些变量。