SCCS-file: yearistype.sh
SCCS-SID: 7.8
This commit is contained in:
Arthur David Olson
2012-07-18 03:02:47 -04:00
committed by Paul Eggert
parent 9fd480c847
commit 332d1ebe50
+3 -3
View File
@@ -9,7 +9,7 @@ case $#-$1 in
esac
case $#-$2 in
2-even)
2-even)
case $1 in
*[24680]) exit 0 ;;
*) exit 1 ;;
@@ -19,7 +19,7 @@ case $#-$2 in
*[02468][048]|*[13579][26]) exit 1 ;;
*) exit 0 ;;
esac ;;
2-odd)
2-odd)
case $1 in
*[13579]) exit 0 ;;
*) exit 1 ;;
@@ -29,7 +29,7 @@ case $#-$2 in
*[02468][048]|*[13579][26]) exit 0 ;;
*) exit 1 ;;
esac ;;
2-*)
2-*)
echo "$0: wild type - $2" >&2 ;;
esac