Shell Command function ignores $SHELL

2002-05-13 Thread Aleksey Tsalolikhin
Hi, Is it me or does the Shell Command function use /bin/sh to execute commands regardless of the value of my SHELL variable? For example, I start mutt with SHELL=/usr/local/bin/zsh mutt and then run !ps -p $$ and it shows "sh". Am I doing something wrong? I'd like to be able access

Re: Shell Command function ignores $SHELL

2002-05-13 Thread Thorsten Haude
Hi, * Aleksey Tsalolikhin <[EMAIL PROTECTED]> [02-05-13 19:40]: > For example, I start mutt with > >SHELL=/usr/local/bin/zsh mutt > >and then run !ps -p $$ > >and it shows "sh". > > Am I doing something wrong? I'd like to be able access >my shell aliases from mutt via !. I don't know about th

Re: Shell Command function ignores $SHELL

2002-05-13 Thread David T-G
Aleksey -- ...and then Aleksey Tsalolikhin said... % % Hi, Hello! % % Is it me or does the Shell Command function use /bin/sh % to execute commands regardless of the value of my SHELL % variable? That's almost certainly the case. It depends on how mutt was configured at compile time:

Re: Shell Command function ignores $SHELL

2002-05-13 Thread David Champion
* On 2002.05.13, in <[EMAIL PROTECTED]>, * "Aleksey Tsalolikhin" <[EMAIL PROTECTED]> wrote: > Hi, > > Is it me or does the Shell Command function use /bin/sh > to execute commands regardless of the value of my SHELL > variable? It uses EXECSHELL. See `mutt -v` for EXECSHELL's value -- i

Re: Shell Command function ignores $SHELL

2002-05-13 Thread Thomas E. Dickey
On Mon, 13 May 2002, Aleksey Tsalolikhin wrote: > Hi, > > Is it me or does the Shell Command function use /bin/sh > to execute commands regardless of the value of my SHELL > variable? > > For example, I start mutt with > > SHELL=/usr/local/bin/zsh mutt > > and then run !ps -p $$ if mutt's u

Re: Shell Command function ignores $SHELL

2002-05-13 Thread Aleksey Tsalolikhin
Thank you David T-G, Thorsten Haude, David Champion and Thomas Dickey! I got my zsh alias working from mutt by rebinding "!" as a macro as David T-G suggested: bind generic ! noop bind generic \\ shell-escape macro generic ! \\"zsh -c " Truly, Aleksey. P.S. Notes on the alias expansion myste

Re: Shell Command function ignores $SHELL

2002-05-13 Thread Thomas E. Dickey
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 i