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

Re: Setting Mutt exit code



Florian Weimer wrote:

> On Thu, Sep 25, 2003 at 07:04:44AM -0400, David T-G wrote:
>
> > Well, yeah, but then that sets it to the same thing always, which is very
> > probably no more helpful than whatever exit code it returns now.  I
> > imagine he plans to base that on some in-mutt behavior and get some real
> > meaning from it.
>
> Exactly.  I currently invoke mutt in a loop to display several mail
> folders, and I need some way to exit this loop prematurely.

Exiting mutt normally (via <quit>) results in an exit value of 0.  But
using Ctrl-C and then answering [yes] when mutt asks "Exit Mutt?
([yes]/no):" causes mutt to exit with a value of 1.

Steve

Attachment: pgpkIwHzvWkjY.pgp
Description: PGP signature