Sequential binding when variable depends on values bound before it
From:
Hans Lonsdale
Subject:
Sequential binding when variable depends on values bound before it
Date:
Sat, 28 Jan 2023 03:27:18 +0100 (CET)
I have identified the problem with the following single line command
local cl=40 cr=$((68-cl))
Because the arithmetic expression is evaluated before the variable assignments,
the value
for cr does not use the set value for cl.
Should this be considered a bug, so we can move on from such impasse ?
--
Sent with https://mailfence.com
Secure and private email