The problem's not with date, but with the assignment. The 'date +%j' command returns a number with a leading zero. To the 'let' assignment this looks like an octal number, but the digit '9' is 'too great for base' (base being 8). Haven't found an elegant way to fix it yet, if I figure it out, I'll 'let' you know ;-).
On Thu, Apr 18, 2002 at 08:58:45PM -0400, Thomas M. Albright wrote: > Can anyone tell me why this is happening? > > [tom@littlefear tom]$ date +%j -d 04/01/2002 > 091 > [tom@littlefear tom]$ let due=`date +%j -d 04/01/2002` ; echo $due > bash: let: due=091: value too great for base (error token is "091") > 100 > > [tom@littlefear tom]$ date +%j -d 01/31/2002 > 031 > [tom@littlefear tom]$ let due=`date +%j -d 01/31/2002` ; echo $due > 25 -- -Paul Iadonisi Senior System Administrator Red Hat Certified Engineer / Local Linux Lobbyist Ever see a penguin fly? -- Try Linux. GPL all the way: Sell services, don't lease secrets ***************************************************************** To unsubscribe from this list, send mail to [EMAIL PROTECTED] with the text 'unsubscribe gnhlug' in the message body. *****************************************************************
