tablespoon / fun

232 stars 52 forks source link

Fix issue: #4 #5

Closed cameronoxley closed 9 years ago

cameronoxley commented 9 years ago

Added "nanoseconds=${nanoseconds#0}" to force base-10 interpretation

cameronoxley commented 9 years ago

Happy with your change.

Also loving the comment: "nanoseconds=10#$(date +%N) # removed this super-elegant solution because OSX's bash can't handle it :("

chicks-net commented 9 years ago

poor OSX :confounded:

Kudos for shell hacking with backward compatibility. :thumbsup: