Re: expr / (( )) different behavior

2017-08-11 Thread Ingo Schwarze
Hi, Alessandro DE LAURENZIS wrote on Fri, Aug 11, 2017 at 01:14:48PM +0200: > On Fri 11/08/2017 13:07, Janne Johansson wrote: >> 0 is parsed as octal in places, so 09 would be bogus if octal. > Thanks for the clarification; does that mean expr(1) can treat 10-base > numbers only? No info in

Re: expr / (( )) different behavior

2017-08-11 Thread Janne Johansson
2017-08-11 13:14 GMT+02:00 Alessandro DE LAURENZIS : > Hi Janne, > On Fri 11/08/2017 13:07, Janne Johansson wrote: > >> 0 is parsed as octal in places, so 09 would be bogus if octal. >> > [...] > > Thanks for the clarification; does that mean expr(1) can treat 10-base >

Re: expr / (( )) different behavior

2017-08-11 Thread Alessandro DE LAURENZIS
Hi Janne, On Fri 11/08/2017 13:07, Janne Johansson wrote: 0 is parsed as octal in places, so 09 would be bogus if octal. [...] Thanks for the clarification; does that mean expr(1) can treat 10-base numbers only? No info in man page on this matter... -- Alessandro DE LAURENZIS

Re: expr / (( )) different behavior

2017-08-11 Thread Janne Johansson
0 is parsed as octal in places, so 09 would be bogus if octal. 2017-08-11 12:56 GMT+02:00 Alessandro DE LAURENZIS : > Dear misc@ readers, > > I was doing a little exercise with integer arithmetics and noticed the > following: > >