Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jan 2003 10:43:22 -0500
From:      "Murat Bicer" <murat@bicer.org>
To:        freebsd-questions@freebsd.org
Subject:   Changes in /bin/sh between 4.6.2 and 4.7
Message-ID:  <20030124154322.C525A1FA3A@www.fastmail.fm>

next in thread | raw e-mail | index | archive | help
Has something changed in sh between these versions:

I get a weird error on some of my scripts

#!/bin/sh

case "$1" in
        start)
                [ -x /usr/local/sbin/freevrrpd ] &&
                /usr/local/sbin/freevrrpd &&
 echo -n ' freevrrpd'
                ;;
        stop)
                killall freevrrpd > /dev/null 2>&1 & && echo -n '
                freevrrpd'
                ;;
        *)
                echo ""
                echo "Usage: `basename $0` { start | stop }"
                echo ""
                exit 64
                ;;
esac
ha1# sh -x /home/murat/freevrrpd.sh stop
/home/murat/freevrrpd.sh: 8: Syntax error: "&&" unexpected


Murat Bicer
murat@bicer.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030124154322.C525A1FA3A>