The let command believes that you are tryin gto use an octal value
(leading zero). However octal values can't contain the 9. One could say it
could try to be smarter, or that it is being too smart. Try this instead:

        date +%j -d 04/01/2002 | sed 's/^0*//'

- Marc

On Thu, 18 Apr 2002, 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
>
> --
> TARogue (Linux user number 234357)
>  You can make it illegal, but you can't make it unpopular.
>
>
> *****************************************************************
> To unsubscribe from this list, send mail to [EMAIL PROTECTED]
> with the text 'unsubscribe gnhlug' in the message body.
> *****************************************************************
>


*****************************************************************
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*****************************************************************

Reply via email to