[Top][All Lists]

[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 

Where youHaveMail produces a voice sound when I have mail and it has been a 
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:


Then true is run and the command does not return an error value.

    Norman Shapiro

reply via email to

[Prev in Thread] Current Thread [Next in Thread]