increment & decrement error when variable is 0

2020-11-23 Thread Jetzer, Bill
Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -DDEFAULT_PATH_VALUE='/usr/local/sbin:/usr/local/bin:/usr/bin' -DSTANDARD_UTILS_PATH='/usr/

Re: increment & decrement error when variable is 0

2020-11-23 Thread Greg Wooledge
On Mon, Nov 23, 2020 at 07:36:29PM +, Jetzer, Bill wrote: > The prefix and postfix versions of the increment (++) and > decrement (--) operators return a non-zero exist status when the varable's > value is zero. This causes scripts to terminate if `set -e` is used https://my