I have a question:
if blah.sh contains:
#!/bin/sh
PATH="/home/bin:/home/lib:/home/include:/home/share:$PATH"; export PATH
LD_LIBRARY_PATH="/home/usr/lib:/home/lib:/lib:/usr/lib"; export LD_LIBRARY_PATH
echo $PATH
Then it would echo the correct new path.
but then echo $PATH from the command line would show unchanged values.
Umm. is there a export -a or something I am missing?
Apologies to be a pain, I did read the man page but don't seem to be able to grasp why it's only set in the script.
Thanks everyone.
Last edited by twobob; 08-10-2012 at 01:14 PM.
Reason: for matting
|