3 ms·
For simple cases, I'll do that, but for longer commands, I've taken to doing rc=0 long command || rc = $? if (( rc == 0 ))...
by Dr_Emann 5y ago
For simple cases, I'll do that, but for longer commands, I've taken to doing
rc=0
long command || rc = $?
if (( rc == 0 ))...