View Single Post

  #8 (permalink)  
Old 04-09-2006, 05:09 PM
monk's Avatar
monk monk is offline
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

When a child process is created (your script), it copy of its variables and current directory. So the child (your script) can change these values all it wants but the changes won't affect the parent shell, since the child is changing a copy of the original data.

As you said use
Code:
.  scriptname
It Read and execute commands from scriptname in the current shell environment and return the exit status of the last command executed from script.
Reply With Quote