On 2021-03-19 2:06 a.m., J Leslie Turriff wrote:
I have a number of places in my .bashrc that source other files. They have no test code around them at all, because I want to know if they don't work; bash complains if something goes wrong, but continues processing the rest of .bashrc.
Indeed anton@main:~> false anton@main:~> echo $? 1 But then this is an interactive shell under Linux (not some IBM mainframe thing or DEC VMS which do unaccountable and inconsistent things but which are actually documented in the wall-covering bookcase of documentation). anton@main:~> bash anton@main:~> exit 42 exit anton@main:~> echo $? 42 anton@main:~> bash anton@main:~> exit $(( 6 * 7 )) exit anton@main:~> echo $? 42 Amazing that the arithmetic expression doesn't need quoting: \$\(\( 6 \* 7 \)\) -- “Reality is so complex, we must move away from dogma, whether it’s conspiracy theories or free-market,” -- James Glattfelder. http://jth.ch/jbg