From: Robert Watson <robert.oo.watson@gmail.com>
To: git@vger.kernel.org
Subject: uncommon shell code
Date: Thu, 22 Sep 2005 15:32:43 +0100 [thread overview]
Message-ID: <72499e3b05092207326abadd91@mail.gmail.com> (raw)
Hi,
I found the following shell code in git-tag.sh (and others):
while case "$#" in 0) break ;; esac
do
...
done
Why not use the straight forward code:
while test "$#" -ne 0
do
...
done
Are there any functional difference between them?
Robertoo
next reply other threads:[~2005-09-22 14:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-22 14:32 Robert Watson [this message]
2005-09-22 22:03 ` uncommon shell code Junio C Hamano
2005-09-23 8:32 ` Robert Watson
2005-09-23 9:00 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=72499e3b05092207326abadd91@mail.gmail.com \
--to=robert.oo.watson@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).