"Pointers" with $ Syntax in /etc/environment
Posted
by
Tyson Trautmann
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Tyson Trautmann
Published on 2012-06-12T02:41:14Z
Indexed on
2012/06/12
4:47 UTC
Read the original article
Hit count: 292
Is it valid to have "pointers" in /etc/environment using $FOO syntax? Right now my /etc/environment looks like this:
JAVA_HOME=/usr/lib/jvm/java-6-openjdk
MAVEN_HOME=/usr/bin/apache-maven/apache-maven-3.0.4
M2_HOME=$MAVEN_HOME
M2=$MAVEN_HOME/bin
PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:$JAVA_HOME/bin:$MAVEN_HOME/bin
I'm not getting the results that I'm expecting though:
~$ echo $JAVA_HOME
/usr/lib/jvm/java-6-openjdk
~$ echo $MAVEN_HOME
/usr/bin/apache-maven/apache-maven-3.0.4
~$ echo $PATH
/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin/bin:/usr/games:$JAVA_HOME/bin:$MAVEN_HOME/bin
© Ask Ubuntu or respective owner