From owner-freebsd-stable Tue Aug 6 16:47: 9 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 1BDA637B400 for ; Tue, 6 Aug 2002 16:47:06 -0700 (PDT) Received: from obsidian.sentex.ca (obsidian.sentex.ca [64.7.128.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA0C743E7B for ; Tue, 6 Aug 2002 16:47:01 -0700 (PDT) (envelope-from mike@sentex.net) Received: from simian.sentex.net (pyroxene.sentex.ca [199.212.134.18]) by obsidian.sentex.ca (8.12.5/8.12.5) with ESMTP id g76NkpmC014626; Tue, 6 Aug 2002 19:46:51 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <5.1.1.6.0.20020806194234.056ec640@marble.sentex.ca> X-Sender: mdtpop@marble.sentex.ca X-Mailer: QUALCOMM Windows Eudora Version 5.1.1 Date: Tue, 06 Aug 2002 19:50:23 -0400 To: The Anarcat From: Mike Tancsa Subject: Re: /bin/sh changed? Cc: freebsd-stable@FreeBSD.ORG In-Reply-To: <20020806231327.GD1019@lenny.anarcat.ath.cx> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: By Sentex Communications (obsidian/20020220) X-Spam-Status: No, hits=-3.5 required=7.0 tests=IN_REP_TO,SUBJ_ENDS_IN_Q_MARK version=2.31 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 Hmmm.... Anyone have a list of "bad" things like this that need to be fixed ? ---Mike 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 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? > > > > > > - 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) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message