Re: [PATCH] Allow shell scripts to run with non-Bash /bin/sh
- From
David Kastrup <dak@gnu.org>
- Date
- Sep 22, 2007, 00:05 UTC
- Message-ID
- <86abrfy377.fsf@lola.quinscape.zz>
- In-Reply-To
- <7v8x6zinjf.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> 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