> test.sh:
> #!/usr/bin/bash
> echo "parent"
> ./child.sh
> sleep 120
> 
> 
> child.sh:
> echo "child
> sleep 120

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.

_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to