Bash Adding 09 or 9.1 etc
- From: Keith <keith@xxxxxxxxxxxxxxx>
- Date: Sat, 28 Oct 2006 00:58:36 -0700
I have a script that gives a error in BASH whenever I try to add 01-09
with 1.
X="09"
X=$((X+1))
line 42: 09: value too great for base (error token is "09")
This is caused by a date command variable and I'm trying to avoid
having to make other changes in the script.
TIA
.
- Follow-Ups:
- Re: Bash Adding 09 or 9.1 etc
- From: Geoff Gigg
- Re: Bash Adding 09 or 9.1 etc
- From: Chris F.A. Johnson
- Re: Bash Adding 09 or 9.1 etc
- Prev by Date: Re: Cisco Engineer, Cambridge, MA
- Next by Date: cut
- Previous by thread: return values from a function call
- Next by thread: Re: Bash Adding 09 or 9.1 etc
- Index(es):