On Wed, 16 Aug 2023 at 14:24, Dennis Williamson <dennistwilliam...@gmail.com> wrote:
> Your use of colon as a comment character is confusing. > Colon is only confusing if one mistakes it for a comment. Colon is not a comment, it's a command, and therefore included in xtrace output. Of course, the real problem is that colon's own exit status is always zero, and that will prevent the exit status of the preceding command from propagating out of a case/esac block or out of a function. -Martin