git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* uncommon shell code
@ 2005-09-22 14:32 Robert Watson
  2005-09-22 22:03 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Watson @ 2005-09-22 14:32 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-09-23  9:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-22 14:32 uncommon shell code Robert Watson
2005-09-22 22:03 ` Junio C Hamano
2005-09-23  8:32   ` Robert Watson
2005-09-23  9:00     ` Junio C Hamano

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).