From owner-freebsd-stable Tue Aug 6 16: 3:45 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1249537B400 for ; Tue, 6 Aug 2002 16:03:42 -0700 (PDT) Received: from aeimail.aei.ca (aeimail.aei.ca [206.123.6.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90D4C43E4A for ; Tue, 6 Aug 2002 16:03:40 -0700 (PDT) (envelope-from anarcat@anarcat.ath.cx) Received: from shall.anarcat.ath.cx (gruhxw1i0fhff0so@dsl-59-246.aei.ca [216.221.59.246]) by aeimail.aei.ca (8.11.6/8.10.1) with ESMTP id g76N3YR28069; Tue, 6 Aug 2002 19:03:39 -0400 (EDT) Received: from lenny.anarcat.ath.cx (lenny.anarcat.ath.cx [192.168.0.4]) by shall.anarcat.ath.cx (Postfix) with SMTP id 1522A134; Tue, 6 Aug 2002 19:03:44 -0400 (EDT) Received: by lenny.anarcat.ath.cx (sSMTP sendmail emulation); Tue, 6 Aug 2002 19:00:18 -0400 Date: Tue, 6 Aug 2002 19:00:18 -0400 From: The Anarcat To: "C.J." Cc: freebsd-stable@freebsd.org Subject: Re: /bin/sh changed? Message-ID: <20020806230018.GC1019@lenny.anarcat.ath.cx> Mail-Followup-To: "C.J." , freebsd-stable@freebsd.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mvpLiMfbWzRoNl4x" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.99i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --mvpLiMfbWzRoNl4x Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I have seen a similar error in the mysql startup script: /usr/local/bin/safe_mysqld --skip-networking --user=3Dmysql > /dev/null & &= & echo -n ' mysqld' yielding: /usr/local/etc/rc.d/mysql-server.sh: 6: Syntax error: "&&" unexpected This appeared shortly after upgrade from -release to -stable. Note that the mysql script is quite odd, in itself. It comes back to: sh -c 'true & && echo foo' which is quite foolish anyways. I'll try to investigate. A. On Tue Aug 06, 2002 at 04:29:18PM -0600, C.J. wrote: > cvsup @11:45MDT - RELENG_4 >=20 > Noticed quite by accident: >=20 > root@host (/root) # /usr/libexec/locate.updatedb > /usr/libexec/locate.mklocatedb: 87: Syntax error: "||" unexpected >=20 > From /usr/libexec/locate.mklocatedb line 87: >=20 > perl -ne '/^\s*[0-9]+\s(..)$/ && print $1 || exit 1' > $bigrams > || exit 1 >=20 > It looks as if, by my extremely limited knowledge of /bin/sh, if you wrap > the || statement down to the next line the shell can no longer understand > since conjoining these two lines solves the problem. I can see where this > is going to be a huge pain in the butt on the rest of my boxes. Was this > change intentional? >=20 >=20 > - C.J. >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message --=20 =46rom the age of uniformity, from the age of solitude, from the age of Big Brother, from the age of doublethink - greetings! --mvpLiMfbWzRoNl4x Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9UFUBttcWHAnWiGcRAtB3AJ91KXELqoxEQP+Q1L+bWGVhiNM8lACeIqiy lkl3IiehpNeeFyCPGW2kR0s= =uVt+ -----END PGP SIGNATURE----- --mvpLiMfbWzRoNl4x-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message