Yes, it does spawn off a child bash process:

[0.06][cfandre at einstein:~]$ pstree -p 3164
bash(3164)---bash(3567)---sleep(3568)

On Tue, 14 Oct 2003, Karl Bongers wrote:

> Actually it looks like bash does get spawned off in either case.
> Try a ps -e | grep pts/X to look at them.
> It's just that the command line invocation is different.
> If you look at /proc/PID/cmdline one shows up as "bash",
> the other shows up as "bash fo.sh".
> 
> You can avoid spawning another bash by preceeding the command with "."
> . ./fo.sh
> This took me forever to figure out, man bash makes me sleepy.
> Comes in handy if you want to setup some evironment vars:
> . ./set_my_env_vars.sh
> Otherwise the env vars don't stick.
> 

_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list