ossp-pkg/shtool/sh.subst 1.8 -> 1.9
--- sh.subst 2003/05/16 08:46:26 1.8
+++ sh.subst 2003/08/13 14:20:34 1.9
@@ -40,11 +40,11 @@
files="$*"
# parameter consistency check
-if [ $# -eq 0 -a ".$opt_b" != . ]; then
+if [ $# -eq 0 ] && [ ".$opt_b" != . ]; then
echo "$msgprefix:Error: option -b cannot be applied to stdin" 1>&2
shtool_exit 1
fi
-if [ $# -eq 0 -a ".$opt_s" = .yes ]; then
+if [ $# -eq 0 ] && [ ".$opt_s" = .yes ]; then
echo "$msgprefix:Error: option -s cannot be applied to stdin" 1>&2
shtool_exit 1
fi
|
|