Re: Inconsistent arithmetic evaluation of parameters
From:
Andreas Schwab
Subject:
Re: Inconsistent arithmetic evaluation of parameters
Date:
Tue, 01 Sep 2015 23:24:58 +0200
User-agent:
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
Dennis Williamson <dennistwilliamson@gmail.com> writes:
> $ echo $((foo)) # expansion succeeds, indirection fails
> dash: 4: Illegal number: bar
The indirection didn't fail, it just didn't produce a number, so the
expression is malformed.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."