From owner-freebsd-questions Fri Jan 24 7:47:43 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A31E737B401 for ; Fri, 24 Jan 2003 07:47:41 -0800 (PST) Received: from server2.fastmail.fm (ny2.fastmail.fm [66.111.4.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF50243E4A for ; Fri, 24 Jan 2003 07:47:40 -0800 (PST) (envelope-from murat@bicer.org) Received: from www.fastmail.fm (server1.internal [10.202.2.132]) by fastmail.fm (Postfix) with ESMTP id D0A16424B5; Fri, 24 Jan 2003 10:47:38 -0500 (EST) Received: from 127.0.0.1 ([127.0.0.1] helo=www.fastmail.fm) by fastmail.fm with SMTP; Fri, 24 Jan 2003 10:47:38 -0500 X-Mail-from: murat@bicer.org X-Spam-score: 0.8 Received: by www.fastmail.fm (Postfix, from userid 99) id AA1C31F70C; Fri, 24 Jan 2003 10:47:38 -0500 (EST) Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MIME::Lite 1.2 (F2.71; T1.001; A1.51; B2.12; Q2.03) From: "Murat Bicer" To: "Murat Bicer" , freebsd-questions@freebsd.org Date: Fri, 24 Jan 2003 10:47:38 -0500 X-Epoch: 1043423258 X-Sasl-enc: OrK/JGWp6OI3stEl1/I6fg Subject: Re: Changes in /bin/sh between 4.6.2 and 4.7 References: <20030124154322.C525A1FA3A@www.fastmail.fm> In-Reply-To: <20030124154322.C525A1FA3A@www.fastmail.fm> Message-Id: <20030124154738.AA1C31F70C@www.fastmail.fm> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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" 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