bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Should this be this way?


From: Chris Down
Subject: Re: Should this be this way?
Date: Tue, 26 Feb 2013 10:43:14 +0800
User-agent: Mutt/1.5.21 (2010-09-15)

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

[Prev in Thread] Current Thread [Next in Thread]