[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] Exit status when argument is -version
From: |
Kevin Cosgrove |
Subject: |
Re: [Nmh-workers] Exit status when argument is -version |
Date: |
Wed, 06 Jun 2012 17:40:55 -0700 |
On 6 June 2012 at 12:39, Ken Hornstein <address@hidden> wrote:
> >The exit status of for, example, "sortm -version" or "scan -version"
> >is not zero. Shouldn't it be. It was in a very old version of nmh,
> >nmh-1.2-20070115cvs.
>
> AFAICT ... it's always been that way. We didn't have -version back in
> MH-6.8.5, but at least as far as our sources go back (1999) -version has
> always exited with an exit code of 1.
>
> Should it? I dunno ... what do people think?
When -version is successful, then I'd prefer to see exit status of
zero. If I were to use nmh-prog -version in a makefile, then a non-zero
successful exit status would break the make.
Cheerio...
--
Kevin