ksh to sh migration