nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] Exit status when argument is -version

2012-06-06 19:41:07

On 6 June 2012 at 12:39, Ken Hornstein <kenh(_at_)pobox(_dot_)com> 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



_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>