> The shell forks, and the child process tries to > execute child.sh using > execve(). If this succeeds, the arguments you see in > ptree show the > child script. If it fails (because there is no #! > line), the child > process interprets the script, but the process args > still match those of > the parent. > > Have a look at shell_execve() in the bash sources for > details.
Thanks for the explanation of how it works,however I am still wondering why it works like that ? Why doesn't the child process change the process name after the failed execve() ? is it "just history" or is this a feature ? -- This message posted from opensolaris.org _______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org