[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] folder -nocreate +/this/does/not/exist
From: |
norm |
Subject: |
Re: [Nmh-workers] folder -nocreate +/this/does/not/exist |
Date: |
Mon, 29 Aug 2016 07:59:34 -0700 |
Ralph Corderoy <address@hidden> writes:
>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
I get around that by a pretty idiosyncratic trick, that many people would
find intolerable. I have
PROMPT_COMMAND='[ $? -eq 0 ] || play
/usr/local/lib/sounds/swish.au;youHaveMail;directory'
Where youHaveMail produces a voice sound when I have mail and it has been a
while
since that sound was last enunciated, and where directory sets the bash prompt
as a function of the host and the current directory.
Confession: I have never fixed this problem:
false|true
Then true is run and the command does not return an error value.
Norman Shapiro
- [Nmh-workers] folder -nocreate +/this/does/not/exist, Ralph Corderoy, 2016/08/28
- Re: [Nmh-workers] folder -nocreate +/this/does/not/exist, David Levine, 2016/08/28
- Re: [Nmh-workers] folder -nocreate +/this/does/not/exist, Ralph Corderoy, 2016/08/29
- Re: [Nmh-workers] folder -nocreate +/this/does/not/exist, David Levine, 2016/08/29
- Re: [Nmh-workers] folder -nocreate +/this/does/not/exist, norm, 2016/08/29
- Re: [Nmh-workers] folder -nocreate +/this/does/not/exist, Ralph Corderoy, 2016/08/29
- Re: [Nmh-workers] folder -nocreate +/this/does/not/exist,
norm <=
- Re: [Nmh-workers] folder -nocreate +/this/does/not/exist, Ralph Corderoy, 2016/08/29
- Re: [Nmh-workers] folder -nocreate +/this/does/not/exist, norm, 2016/08/29
- Re: [Nmh-workers] folder -nocreate +/this/does/not/exist, Ralph Corderoy, 2016/08/29