Space removal in AE takes place before brace expansion

2017-04-30 Thread Florian Mayer
I want to add up all numbers from 1 to 10, but when I do $ echo $(({1,10}’+’ +0)) # with a space between the first + and the second one I get an error: bash: ((: 1+ ,3 10+ ,3: syntax error: operand expected (error token is ",3 10+ ,3“) It seems as if brace expansion gets executed first (as expec

[suggestion] Brace expansion configurability

2017-04-30 Thread omasmotorrad
Why is it that one cannot change the delimiter for the words generated during brace expansion? On stackexchange, there too are questions regarding this. Personally I’d like to be able to write $ IFS=„,“ echo a{b,c,d} rather than $ echo a{b,c,d} | tr „ „ „,“ In this example both lines are equally