Clarification - Space removal in AE takes place before brace expansion
From:
Florian Mayer
Subject:
Clarification - Space removal in AE takes place before brace expansion
Date:
Mon, 01 May 2017 15:49:39 +0200
User-agent:
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
From my previous mail:
$ echo $(({1..10}’+’ +0)) # with a space between the first + and the
second one
I'm sorry, I assumed that $(()) and (( )) so the exact same thing so I only
included the $(()) version instead of what I tested on my machine.
Apparently both versions do not behave the same.
$ eval echo \$\(\( {1..10}'+' +0\)\)
Works. Adds up to 55, ok.
$ echo $(( {1..10}'+' +0))
Does not work, because: