Supplant the "while case ... break ;; esac" idiom