nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] folder -nocreate +/this/does/not/exist

2016-08-28 13:49:45
Ralph wrote:

    $ mhparam folder
    -nocreate
    $ folder +/this/does/not/exist
    $ echo $?
    1

I'd expect something on stderr.

Well, the man page doesn't promise that:

    Specifying -nocreate will cause folder to exit without creating
    a non-existant folder.

It wouldn't be too hard (provide a new done()) to print a message on
stderr.  But, I think the non-zero exit status is sufficient.  Esp.
in scripts.

David

_______________________________________________
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>