[ris-int] Re: [sed] let bug in bash and data collection
Shane Kerr shane at ripe.net
Thu Sep 2 15:28:55 CEST 2004
Arife Vural wrote: > FYI: Yesterday, begining of month, script that creates the rawdata dir > on RRCs did not work because of let bug [1] in bash and rawdata was not > collected on RRCs from 20040901 00:00 to 20040901 08:20 UTC. > > I fixed it when I noticed the problem in the morning yesterday. > > Arife > > [1] In bash the following lines does not work if x value is 8. > > let x=x+1 Surely you mean if the value is "08": x17:shane:~ $ let x=6 x17:shane:~ $ echo $x 6 x17:shane:~ $ let x=x+1 x17:shane:~ $ echo $x 7 x17:shane:~ $ let x=x+1 x17:shane:~ $ echo $x 8 x17:shane:~ $ let x=x+1 x17:shane:~ $ echo $x 9 x17:shane:~ $ let x=07+1 x17:shane:~ $ echo $x 8 x17:shane:~ $ let x=08+1 bash: let: x=08: value too great for base (error token is "08") This isn't a bug, it's a feature! For details, use "man strtol" and see the description for the special base value 0... -- Shane Kerr RIPE NCC
[ Ris-int Archives ]