Bash to ksh problem

view story

http://www.unix.com – Hi all Below code works in bash but it is not working in ksh. Code: #!/bin/bash #give start date and enddate in the format yyyy_mm_dd startdate="${1//_/-}"  # change underscores into dashes enddate="${2//_/-}" enddate=`date -d "$enddate + $i day" "+%Y_%m_%d"` #Increases enddate by 1 day so that loop runs on given enddate also enddate="${enddate//_/-}" echo "StartDate: $startdate  EndDate+1Day: $enddate" nextdate=$startdate #nextdate runs from startdate to enddate while [ 1 ] do       &nbs (HowTos)