From: David Kastrup Date: Sat, 22 Sep 2007 00:05:32 GMT Subject: Re: [PATCH] Allow shell scripts to run with non-Bash /bin/sh Message-ID: <86abrfy377.fsf@lola.quinscape.zz> In-Reply-To: <7v8x6zinjf.fsf@gitster.siamese.dyndns.org> Junio C Hamano writes: > I do not doubt that "while case $# in 0) break ;; esac" does not > work for your shell. But I think the above comment is grossly > misleading. Personally, I find this idiom distasteful. I'd do either while case $# in 0) false ;; *) true esac or, more likely while : do case $# in 0) break;; esac But doing a break inside of the while _condition_ rather than the body just feels wrong to me. -- David Kastrup