Jean-Marc Lasgouttes wrote:
>>> I do not see why setting SHELL to some bogus value does not work
>>> as expected.
> 
> Angus> Running 'exec false' from the terminal just closes the
> Angus> terminal. Ie, the action is executed successfully...
> 
> And? How comes i eventually excutes the ls?

The 'echo hello' you mean?

It seems to me that do_shell may well fail to set the shell, but it
then passes no information on to the function that goes on to execute
'echo hello'. Note the 'void' in 

static void do_shell()

What does

        os_error("system() failed", NO_CARET);

do? Anything interesting, or does it simply print out a warning
message or such like?

-- 
Angus

Reply via email to