|
/home/miguel> echo $path
/home/miguel/bin /usr/local/bin /usr/bin /usr/X11R6/bin /bin /usr/games /opt/gnome/bin /opt/kde3/bin /usr/lib/jvm/jre/bin /usr/sbin /usr/lib/mit/bin /usr/lib/mit/sbin /usr/lib/qt3/bin
/home/miguel> set path=(/another/dir/in/path $path)
/home/miguel> echo $path
/another/dir/in/path /home/miguel/bin /usr/local/bin /usr/bin /usr/X11R6/bin /bin /usr/games /opt/gnome/bin /opt/kde3/bin /usr/lib/jvm/jre/bin /usr/sbin /usr/lib/mit/bin /usr/lib/mit/sbin /usr/lib/qt3/bin
/home/miguel> setenv MYVAR whatever
/home/miguel> bash
miguel@gold:~> echo $MYVAR
whatever
miguel@gold:~>
The set path syntax is exactly as you can see above. using = and () and no spaces !
The setenv syntax is exactly as you can see above. :-)
Not use = and with spaces and no ().
In above, after setting a ENV var, a call a bash to check the ENV var MYVAR was exported to the child, as you can see in the echo $MYVAR.
I hope this help, If no, post a reply in this same thread.
regards,
|