> If you omit the #!/bin/bash from child.sh, I suspect > the original bash will > look at the file, recognize it's executable, but > since the file doesn't > specify a new command interpreter, it's equivalent to > ". ./child.sh" meaning > the parent script simply sources the child script. > Not in a new > Interpreter.
I sounds plausible, but I am not sure it is excatly like that because a quick test did not give me the expected result After I trid to change test.sh to use the ". ./child.sh" notation, I do not get a child process at all, only the process of test.sh 13870 -bash 17820 /bin/bash ./test.sh 17824 sleep 160 So somehow running without "#!/usr/bin/bash" gets me a new process in the same interpreter ? -- This message posted from opensolaris.org _______________________________________________ opensolaris-discuss mailing list [email protected]
