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> |
|---|---|---|
| ||
| Previous by Date: | Re: [Nmh-workers] folder -nocreate +/this/does/not/exist, norm |
|---|---|
| Next by Date: | Re: [Nmh-workers] folder -nocreate +/this/does/not/exist, norm |
| Previous by Thread: | Re: [Nmh-workers] folder -nocreate +/this/does/not/exist, norm |
| Next by Thread: | Re: [Nmh-workers] folder -nocreate +/this/does/not/exist, norm |
| Indexes: | [Date] [Thread] [Top] [All Lists] |