Re: Assignment to RO variable

2023-08-16 Thread Chet Ramey
On 8/15/23 9:57 PM, Wiley Young wrote: From within a stack of x3 functions called from a case within a for loop, when trying to assign a value to a read-only variable, `printf` and `read` both fail with exit codes of 1, and the functions, `case` and `for` commands all complete. When trying eff

Re: Assignment to RO variable

2023-08-16 Thread Martin D Kealey
On Wed, 16 Aug 2023 at 14:24, Dennis Williamson 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'

Re: Assignment to RO variable

2023-08-16 Thread Greg Wooledge
On Tue, Aug 15, 2023 at 11:24:31PM -0500, Dennis Williamson wrote: > Your use of colon as a comment character is confusing. They're running with set -x, so presumably they used those : commands to mark the set -x output with various labels. Which seems nominally clever, except they didn't *show*