Date: Tue, 6 Aug 2002 19:13:27 -0400 From: The Anarcat <anarcat@anarcat.ath.cx> To: "C.J." <clayton@frii.net> Cc: freebsd-stable@freebsd.org Subject: Re: /bin/sh changed? Message-ID: <20020806231327.GD1019@lenny.anarcat.ath.cx> In-Reply-To: <Pine.BSF.4.44.0208061621470.93936-100000@elara.frii.com> References: <Pine.BSF.4.44.0208061621470.93936-100000@elara.frii.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--GyRA7555PLgSTuth Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 >=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 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) --GyRA7555PLgSTuth Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9UFgWttcWHAnWiGcRAh7sAJ9JYsyN13opKygXE7pa/gxRmsfeMQCgghRT 2MuKwh6UHk2ON+tpLWGEuIo= =D2gq -----END PGP SIGNATURE----- --GyRA7555PLgSTuth-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020806231327.GD1019>