Possible Duplicate:
How can I make variables “exported” in a bash script stick around?
I have a problem with executing script from file. When I type in command line
PATH=$PATH:/home/
then PATH
is changed appropriately. But when I execute this file :
#!/bin/sh
#provided by me
PATH=$PATH:/home/
echo "done"
exit 0
done
is printed but PATH
is not changed. Why is this happening ?