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

Re: Setting Mutt exit code



* Florian Weimer <fw@xxxxxxxxxxxxx> [2003-09-25 08:44:36 +0200]:
> I'd like to set the exit code Mutt returns.  Is this possible at all?

  I don't think you can, but you could fake it by using a shell script
wrapper like so:

----- cut here "mutt_exitstatus.sh"
#! /bin/sh
/usr/bin/mutt $*
exit 1
----- cut here
 
  Obviously you can replace the "exit" number with whatever status you
want to fake.  Also note that since the script calls mutt by its full
path (which you may need to edit), you can call the script itself "mutt"
and invoke it that way...

-- 
  John  ! Being a local sysadmin/network admin is different. It's your
 Buttery! baby, you get the call at 3am when things go bad, you make
www.io.c! sure that doesn't happen. Too bad employers don't see that..
om/~john!  -- http://slashdot.org/comments.pl?sid=74531&cid=6682570

Attachment: pgpAUE1FtsAT1.pgp
Description: PGP signature