On 2013-02-25 18:27, Linda Walsh wrote:
> I mentioned that everything in my ENV and usage pointed at /bin/bash.

You gave $SHELL, which is not really relevant (it doesn't necessarily reference
your login shell, or your current shell either).

> Why would I do that, and then use 'sh script'?
>
> Wouldn't that sorta be deliberately misleading?

You'd be surprised what people do without thinking about it. Seems like a
well-intentioned question to me, at least.

Either way, the code you're looking for is in `shell_execve' in `execute_cmd.c',
it should explain the behaviour that you're seeing. It's very well commented,
you should be able to find your answer there.

Chris

Reply via email to