Fix the 'unexpected operator' error rclist gave every time it was
authorSascha Wildner <swildner@dragonflybsd.org>
Sat, 6 Oct 2007 17:31:21 +0000 (17:31 +0000)
committerSascha Wildner <swildner@dragonflybsd.org>
Sat, 6 Oct 2007 17:31:21 +0000 (17:31 +0000)
executed with more than one argument.

sbin/rcrun/rcrun.sh

index fa769cd..dfabc74 100644 (file)
@@ -2,7 +2,7 @@
 #
 # rcng command
 #
-# $DragonFly: src/sbin/rcrun/rcrun.sh,v 1.7 2007/10/05 23:55:47 swildner Exp $
+# $DragonFly: src/sbin/rcrun/rcrun.sh,v 1.8 2007/10/06 17:31:21 swildner Exp $
 
 dostart()
 {
@@ -167,7 +167,7 @@ rcvar)
        done
        ;;
 list)
-       if [ X$@ = X ]; then
+       if [ "X$*" = X ]; then
            for i in `varsym -a -s | egrep '^rcng_'`; do
                echo $i
            done