I have a question about the subshell that is started up when you
use the ! command.

The manual says:
 shell-escape (default: !)

  Asks for an external Unix command and executes it.  The ``$wait_key''
  can be used to control whether Mutt will wait for a key to be pressed
  when the command returns (presumably to let the user read the output
  of the command), based on the return status of the named command.

This doesn't really tell us what the subshell is. What I get when
I press ! is:

Shell command:

but if I enter any function (eg, jay) I've defined in my .bashrc
or .bash_login (bash is my shell), I get 

sh: jay: command not found
Press any key to continue...

Apparently the subshell is sh. I have to press enter and then I
get the prompt

bash$

(I have the command, set shell="/usr/bin/bash" in the second line
of .muttrc).  I can then type in my command and then exit the
bash subshell. 

So, my question is how can I avoid this sh subshell and get a
bash subshell instead straight off. I don't want to have to press
enter and then type exit after. 

-- 
Greg Matheson
Chinmin College, Taiwan
[EMAIL PROTECTED]

Reply via email to