Re: Clarification - Space removal in AE takes place before brace expansi
From:
Chet Ramey
Subject:
Re: Clarification - Space removal in AE takes place before brace expansion
Date:
Mon, 1 May 2017 15:07:26 -0400
User-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.0.1
On 5/1/17 11:21 AM, Florian Mayer wrote:
>> imadev:~$ {1..10}'+ 0'
>> + '1+ 0' '2+ 0' '3+ 0' '4+ 0' '5+ 0' '6+ 0' '7+ 0' '8+ 0' '9+ 0' '10+ 0'
>> bash: 1+ 0: command not found
>>
>> It most certainly does not evaluate to 55.
> Oh, it would've with the expansion put into arithmetic context.
It wouldn't, actually. That's shown in your previous message, where you
get a syntax error.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/