Opened 11 years ago

Closed 11 years ago

#113 closed defect (fixed)

integer starting with 0 are considered in octal base by bash (issues for month=08....)

Reported by: sdipsl Owned by: sdipsl
Priority: trivial Milestone: Bash translation
Component: system Version:
Keywords: Cc:

Description

In bash we need to specify than numbers starting by 0 are in fact base 10. Mainly concern operation on year, month and day

month=06
i=0
if [ $(( month + i )) -lt 13 ] ; then echo tata; else echo toto; fi

month=08
i=0
if [ $(( month + i )) -lt 13 ] ; then echo tata; else echo toto; fi

Change History (2)

comment:1 Changed 11 years ago by sdipsl

  • Owner changed from somebody to sdipsl
  • Status changed from new to assigned

Partly done in r829. At least to enable unit test and DRYRUN=3 mode.

comment:2 Changed 11 years ago by sdipsl

  • Resolution set to fixed
  • Status changed from assigned to closed

ksh-bash Traduction function can cope with it.

Note: See TracTickets for help on using tickets.