Use printf instead of echo -n
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 23 Oct 2003 14:12:22 +0000 (14:12 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 23 Oct 2003 14:12:22 +0000 (14:12 +0000)
src/yaz-proxy.sh

index e097a3e..757e240 100755 (executable)
@@ -47,13 +47,13 @@ set -e
 
 case "$1" in
   start)
-       echo -n "Starting $DESC: "
+       printf "%s" "Starting $DESC: "
        cd $DIR
        $DAEMON -l $LOGFILE -p $PIDFILE $ARGS @:$PORT &
        echo "$NAME."
        ;;
   stop)
-       echo -n "Stopping $DESC: "
+       printf "%s" "Stopping $DESC: "
 
        if test -f $PIDFILE; then
                kill `cat $PIDFILE`
@@ -69,7 +69,7 @@ case "$1" in
        fi
   ;;
   restart|force-reload)
-       echo -n "Restarting $DESC: "
+       printf "%s" "Restarting $DESC: "
        if test -f $PIDFILE; then
                kill `cat $PIDFILE`
                rm -f $PIDFILE