Re: ++ causes 2 variables to increment

2016-05-17 Thread phil colbourn
Thanks Grisha, Sorry for putting you through analysing my faulty example. Phil On 16 May 2016 at 05:58, Grisha Levit wrote: > > On Sun, May 15, 2016 at 4:42 PM, phil colbourn > wrote: > > # here, M=2 >> >> > It's not -- the value of $M here is the string "F[word]". Your print > function r

Re: ++ causes 2 variables to increment

2016-05-15 Thread Grisha Levit
On Sun, May 15, 2016 at 4:42 PM, phil colbourn wrote: > # here, M=2 > > It's not -- the value of $M here is the string "F[word]". Your print function reports the value of "$((M*1))", which is, in fact "2": inside the arithmetic expression "M" is expanded to "F[word]" which is expanded to "2". >