When I change an env var in /bin/sh
, it only takes effect after a new export
command, for example:
$ which ant
/usr/sfw/bin/ant
$ env | grep ANT
ANT_HOME=/usr/local/apache-ant-1.9.8
$ PATH=$ANT_HOME/bin:$PATH
$ which ant
/usr/sfw/bin/ant
$ env | egrep '^PATH='
PATH=/usr/local/gcc-492/bin:/export/home/sisis/mpi-V50:...
$ export PATH
$ which ant
/usr/local/apache-ant-1.9.8/bin/ant
$ env | egrep '^PATH='
PATH=/usr/local/apache-ant-1.9.8/bin:/usr/local/gcc-492/bin:/export/home/sisis/mpi-V50 ...
Is this a bug or a new feature?
Matthias