ken wrote: > Doing very simple math in bash fails if a number begins with a zero (0).
Thanks for the report. However it isn't a bug but simply a misunderstanding. Numbers starting with 0 are octal numbers not decial numbers. And as you know octal numbers includes zero through seven but does not include eight or nine. Please look at the Bash FAQ item E8. http://www.faqs.org/faqs/unix-faq/shell/bash/ Bob