Example:
mainscript.sh
cd /mnt/something
./buildscripts/000-script.sh
000-script.sh
cd /mnt/otherthing
mkdir something
exit
Example: mainscript.sh
000-script.sh
|
||||
|
Yes the executed process will not change the working directory of the parent process. Example:
Calling
As you see when printing |
||||
|
The "child" is not remembering anything. This is just a basic concept that processes are started from their current working directory (cwd). If you look at /proc/* on a Linux-system you can see that entry for every process. |
|||
|