uncommon shell code
- From
- Robert Watson <robert.oo.watson@gmail.com>
- Date
- Sep 22, 2005, 14:32 UTC
- Message-ID
- <72499e3b05092207326abadd91@mail.gmail.com>
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