请告诉我为什么我不能通过修改来设置我的环境变量~/.profile
?
[104] whoami
user
[105]% cat .profile
. /app/share/Profile
# add any personal customizations after this line
set JAVA_HOME="/usr/java/jdk1.6.0_17"
[106]% ~/.profile
user out
[107]% echo $JAVA_HOME
JAVA_HOME: Undefined variable.
答案1
我必须修改~/.cshrc。
[me$]% cat ~/.cshrc
setenv MAVEN_HOME /home/bin/apache-maven-2.2.1/bin