<<< Date Index >>>     <<< Thread Index >>>

Re: shell exits



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday, September  7 at 07:36 AM, quoth Jason Helfman:
> If I am in mutt (the reader we all know and love more than family,
> sometimes), and do a shell escape by using the '!' character. By simply
> hitting return, it will exit out of mutt. Is this the expected behavior
> for the "shell execution"?

HEH. It doesn't actually exit out of mutt. Mutt is still running.

When you do a shell escape by using the ! character but don't specify 
a command to run, what happens is that mutt runs a shell. You can get 
back to mutt by exiting the shell. Think of it like a stack. Normally, 
you've got this:

    mutt
    bash
    xterm

When you do a ! without an argument, it becomes this:

    bash
    mutt
    bash
    xterm

That is expected behavior. The same thing happens (for example) when 
you do the same thing (:! with no commands) in Vim. All you have to do 
to get back to mutt is exit your shell (either type "exit" or do 
whatever works for you), and then you'll be back to:

    mutt
    bash
    xterm

In the same way that exiting mutt brings you back to your shell:

    bash
    xterm

~Kyle
- -- 
They think I'm crazy, and maybe I am. But maybe I'm a genius.
                                                         -- Mel Gibson
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!

iD8DBQFFADEmBkIOoMqOI14RAqUFAJ9PuTO7yBRQuDSvi1WtV0PrW7AiXwCdEJr0
+Ma7sgWgN7C1Nx4TM1cKAk8=
=jvPg
-----END PGP SIGNATURE-----