uncommon shell code

From: Robert Watson <hidden>
Date: 2016-06-15 22:42:07

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help