nmh-workers
[Top] [All Lists]

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

2016-08-29 09:29:24
Hi Norm,

I customarily begin all my bash scripts with

  set -eu

Yes, I do something similar, but it was interactive use where I didn't
notice folder had failed.

  command || true

Another idiom with this in place is

    r=0
    foo || r=$?
    # ...Continue to test $r for specific exit values.

Cheers, Ralph.

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