moving from bash to ksh-style conditionals