bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange bug in arithmetic function


From: Marcel de Reuver
Subject: Strange bug in arithmetic function
Date: Mon, 21 Feb 2011 10:13:54 +0100

In a bash script I use: $[`date --date='this week' +'%V'`%2] to see if
the week number is even.
Only in week 08 the error is: bash: 08: value too great for base
(error token is "08") the same in week 09, all others are Ok...

GNU bash, version 3.2.39(1)-release (i486-pc-linux-gnu)
Copyright (C) 2007 Free Software Foundation, Inc.

Running Ubutu 2.6.24-28 server

--
Regards,
Marcel de Reuver
mailto:marcel@de.reuver.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]