Re: Word splitting and arithmetic expansion

2010-12-29 Thread Jan Schampera
Chet Ramey wrote: Arithmetic expansion is a Posix invention. It's treated just like every other expansion: split unless double quoted. There's no compelling reason to make it behave differently. I don't want it to behave differently :) Okay, so it's just "as is", because by consistent desig

Re: Word splitting and arithmetic expansion

2010-12-28 Thread Chet Ramey
On 12/28/10 2:50 PM, Jan Schampera wrote: > Hello list, > > maybe something for old stagers. > > Bash (and POSIX, and Korn, ...) do field/word splitting on the result of > arithmetic expansions. This is fine, the behaviour per se is not a problem > at all. > > However, I wonder about the origina