Op 04-04-17 om 11:41 schreef nesro: > # run an empty for cycle. we can see from the output that bash ran :, then > # false and stopped to it. which is the right behavior > for (( :; false; )); do :; done
This is a syntax error. 'for' takes arithmetic expressions, not shell commands. > # now run this while cycle. it just cycle the debug trap forever > while false; do :; done The 'false' command is never executed so never has the chance to return an exit status of "false" (1). - M.