Date: Fri, 24 Jan 2003 10:47:38 -0500 From: "Murat Bicer" <murat@bicer.org> To: "Murat Bicer" <murat@bicer.org>, freebsd-questions@freebsd.org Subject: Re: Changes in /bin/sh between 4.6.2 and 4.7 Message-ID: <20030124154738.AA1C31F70C@www.fastmail.fm> In-Reply-To: <20030124154322.C525A1FA3A@www.fastmail.fm> References: <20030124154322.C525A1FA3A@www.fastmail.fm>
next in thread | previous in thread | raw e-mail | index | archive | help
Sorry about the question.
It was in the release notes.
sh(1) no longer accepts invalid constructs as command & && command, &&
command, or || command.
On Fri, 24 Jan 2003 10:43:22 -0500, "Murat Bicer" <murat@bicer.org> said:
> 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
>
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?20030124154738.AA1C31F70C>
