tablespoon / fun

232 stars 52 forks source link

cli-clock: 10#N: value too great for base #4

Closed cameronoxley closed 9 years ago

cameronoxley commented 9 years ago

Received the following error:

cli-clock: line 234: 1000000000 - 10#N: value too great for base (error token is "10#N")

walkdoer commented 9 years ago

I have come across the same problem too run environment: os x

./cli-clock: line 201: 1000000000 - 10#N: value too great for base (error token is "10#N")
tablespoon commented 9 years ago

Interesting. Are you also running OSX, cameronoxley? Which version of bash are you guys using?

tablespoon commented 9 years ago

I added a fix that I think ought to work for you guys.

cameronoxley commented 9 years ago

Running GNU bash, version 3.2.57(1)-release for OSX.

The fix mentioned above did seem to work. Thanks!

tablespoon commented 9 years ago

Without having looked at bash's release notes, I'm betting this is a bash 3 limitation. I run CentOS 6 on my iMac at the office, and Fedora on a laptop, both of which include bash 4.

Glad to hear the code change solves the problem for you guys