[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Assignment to RO variable
From: |
Martin D Kealey |
Subject: |
Re: Assignment to RO variable |
Date: |
Wed, 16 Aug 2023 22:46:16 +1000 |
On Wed, 16 Aug 2023 at 14:24, Dennis Williamson <dennistwilliamson@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