erratic sh arithmetic
Gary Aitken
ubuntu at dreamchaser.org
Fri Jul 10 16:13:15 UTC 2020
On 7/10/20 9:17 AM, Gary Aitken wrote:
> On 7/10/20 12:33 AM, Karl Auer wrote:
>> Haven't looked closely, but any value beginning with "0" is regarded as
>> octal, so 08 (also 09, 18, 19, 28 and 29) should be throwing "value too
>> great for base".
>
>> If it's been up for two weeks, running daily, you should have had a
>> similar error on 28 and 29 June.
>
> As I recall, those failed also and caused me to try expr, which worked;
> but then I did a sanity check and retried the old form and it worked
> (because the day was now legal octal), which caused craziness inside
> my head.
Actually, as it's only a 2-digit number, only 08 and 09 cause problems.
So it was a month ago that I had the same issue.
Gary
More information about the ubuntu-users
mailing list