Say I have this structure
/masterscript /a/script1 /a/b/script2
In masterscript I spawn the other scripts as background processes:
"/a/script1" & "/a/b/script2" &
The problem is that script1 and script2 inherit the working directory of masterscript. Is there a way to start these scripts with working directories the directories where they are?