Dennis Williamson <[email protected]> writes:

> On Tue, Sep 1, 2015 at 4:24 PM, Andreas Schwab <[email protected]>
> wrote:
>
>> Dennis Williamson <[email protected]> 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, [email protected]
>> GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
>> "And now for something completely different."
>>
>
> I disagree. The _expansion_ produced "bar"

That's not an expansion.  Only $ introduces an expansion.

Andreas.

-- 
Andreas Schwab, [email protected]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Reply via email to