From owner-freebsd-stable Tue Aug 6 17:50:20 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 3FA7F37B400 for ; Tue, 6 Aug 2002 17:50:09 -0700 (PDT) Received: from aeimail.aei.ca (aeimail.aei.ca [206.123.6.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC0EA43E65 for ; Tue, 6 Aug 2002 17:50:07 -0700 (PDT) (envelope-from anarcat@anarcat.ath.cx) Received: from shall.anarcat.ath.cx (4jnavfleyzfwp1y0@dsl-59-246.aei.ca [216.221.59.246]) by aeimail.aei.ca (8.11.6/8.10.1) with ESMTP id g76Nr3R21337; Tue, 6 Aug 2002 19:53:04 -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 6289C2DC; Tue, 6 Aug 2002 19:53:13 -0400 (EDT) Received: by lenny.anarcat.ath.cx (sSMTP sendmail emulation); Tue, 6 Aug 2002 19:49:47 -0400 Date: Tue, 6 Aug 2002 19:49:47 -0400 From: The Anarcat To: Mike Tancsa Cc: freebsd-stable@FreeBSD.ORG Subject: Re: /bin/sh changed? Message-ID: <20020806234947.GI1019@lenny.anarcat.ath.cx> Mail-Followup-To: Mike Tancsa , freebsd-stable@FreeBSD.ORG References: <5.1.1.6.0.20020806194234.056ec640@marble.sentex.ca> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/qIPZgKzMPM+y5U5" Content-Disposition: inline In-Reply-To: <5.1.1.6.0.20020806194234.056ec640@marble.sentex.ca> 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 --/qIPZgKzMPM+y5U5 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I don't know of any. The fixes are kinda easy though, since the original syntax is bad. Anyone should report it via GNATS or MAINTAINER, I guess. A. On Tue Aug 06, 2002 at 07:50:23PM -0400, Mike Tancsa wrote: > Hmmm.... Anyone have a list of "bad" things like this that need to be=20 > fixed ? >=20 > ---Mike >=20 > At 07:13 PM 06/08/2002 -0400, The Anarcat wrote: > >Ok, it seems a recent MFC made /bin/sh DTRT after all. > > > >Indeed the line in locate.mklocatedb: > > > > || exit 1 > > > >is faulty. Either the line before needs a backslash to continuate the > >line, or drop the '||'. > > > >I'm not sure why the locate script hasn't been (completely) fixed, but > >it should be fixed. Not /bin/sh. > > > >Same goes for that ugly mysql startup script. > > > >A. > > > >On Tue Aug 06, 2002 at 04:29:18PM -0600, C.J. wrote: > >> cvsup @11:45MDT - RELENG_4 > >> > >> Noticed quite by accident: > >> > >> root@host (/root) # /usr/libexec/locate.updatedb > >> /usr/libexec/locate.mklocatedb: 87: Syntax error: "||" unexpected > >> > >> From /usr/libexec/locate.mklocatedb line 87: > >> > >> perl -ne '/^\s*[0-9]+\s(..)$/ && print $1 || exit 1' > $bigrams > >> || exit 1 > >> > >> It looks as if, by my extremely limited knowledge of /bin/sh, if you w= rap > >> the || statement down to the next line the shell can no longer underst= and > >> since conjoining these two lines solves the problem. I can see where= =20 > >this > >> is going to be a huge pain in the butt on the rest of my boxes. Was t= his > >> change intentional? > >> > >> > >> - C.J. > >> > >> > >> To Unsubscribe: send mail to majordomo@FreeBSD.org > >> with "unsubscribe freebsd-stable" in the body of the message > > > > > >-- > >The idea that Bill Gates has appeared like a knight in shining armour to > >lead all customers out of a mire of technological chaos neatly ignores > >the fact that it was he who, by peddling second-rate technology, led > >them into it in the first place. - Douglas Adams (1952-2001) >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message --=20 Un =E9ducateur dans l'=E2me ne prend rien au s=E9rieux que par rapport =E0 ses disciples -- soi-m=EAme non except=E9. - Nietzsche, "Par del=E0 le bien et le mal" --/qIPZgKzMPM+y5U5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9UGCattcWHAnWiGcRAgZEAJ9DG9Fq7bINmVXlh78APP18galJTgCdH2aL OzEispoMu7dd5mNm7bFLu9o= =uyoy -----END PGP SIGNATURE----- --/qIPZgKzMPM+y5U5-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message