On Mon, 13 May 2002, Aleksey Tsalolikhin wrote:

>   My C is pretty weak but
>
>   execl (EXECSHELL, "sh", "-c", cmd, NULL);
>
> looks odd when I know EXECSHELL is /usr/local/bin/zsh.
>
> I'm not quite sure what this does, it looks like it specifies the
> path /usr/local/bin/zsh but then invokes it as sh?  That would
> certainly explain the lack of aliases!

yes - the first parameter is the actual executable, but the second is the
name that the executable thinks it is invoked by.  Some shells (such as
bash) check that to decide whether to behave just-like-sh.  Aliases are
a different matter - some shells may require an option to force them to
read their initialization files).  In context, it looks as if mutt's
shell interface needs a little tweaking for you to get just what you want.

-- 
T.E.Dickey <[EMAIL PROTECTED]>
http://invisible-island.net
ftp://invisible-island.net

Reply via email to