Re: simple function causes BASH to exit when -e in effect

2017-12-24 Thread Kevin Layer
Bob,

'set -e' is a double-edged sword, for sure, but I'm not sure it creates
more problems than it solves.  Hidden non-zero exits have wasted far more
time, for me, than this little exercise has.

On Sun, Dec 24, 2017 at 11:45 AM, Bob Proulx  wrote:

> Kevin Layer wrote:
> > It took me hours of work to distill this down from a very large and long
> > running script.
>
> > set -eu
>
> Hours and hours of debug time could be saved if people stopped using
> 'set -e' in their programs.  It creates more problems than people
> think it solves.  Do not meddle in the affairs of 'set -e' for it is
> subtle and quick to anger.
>
> Bob
>


Re: simple function causes BASH to exit when -e in effect

2017-12-24 Thread Bob Proulx
Kevin Layer wrote:
> It took me hours of work to distill this down from a very large and long
> running script.

> set -eu

Hours and hours of debug time could be saved if people stopped using
'set -e' in their programs.  It creates more problems than people
think it solves.  Do not meddle in the affairs of 'set -e' for it is
subtle and quick to anger.

Bob