From owner-freebsd-stable Sat Aug 10 7:23: 0 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 4F92F37B400 for ; Sat, 10 Aug 2002 07:22:58 -0700 (PDT) Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AD5E43E75 for ; Sat, 10 Aug 2002 07:22:57 -0700 (PDT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (vqlwxk@localhost [127.0.0.1]) by lurza.secnetix.de (8.12.5/8.12.5) with ESMTP id g7AEMtvJ098513 for ; Sat, 10 Aug 2002 16:22:56 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.12.5/8.12.5/Submit) id g7AEMtTS098512; Sat, 10 Aug 2002 16:22:55 +0200 (CEST) Date: Sat, 10 Aug 2002 16:22:55 +0200 (CEST) Message-Id: <200208101422.g7AEMtTS098512@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG Reply-To: freebsd-stable@FreeBSD.ORG Subject: Re: Keychain (shell script) does not want to play with /bin/sh In-Reply-To: <20020810081831.F278-100000@veager.jwweeks.com> X-Newsgroups: list.freebsd-stable User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.6-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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 Jim Weeks wrote: > Ok, this is getting a little ridiculous. One can argue that the new > /bin/sh does things correctly and the old version did not, but now we see > breakage in core components! Then it's pretty clear that those broken core components should be fixed. > /usr/libexec/locate.mklocatedb: 87: Syntax error: "||" unexpected There's no doubt that there's a syntax error in that file (a backslash is missing for line continuation). I am _really_ suprised that nobody stumbled across that error before. > At this point I'm not sure what the answer might be, wait untill things > break and then fix them? Sure, what else could be done? Well, you could grep all scripts on the box for that particular kind of error, i.e. "||" at the end of a line (modulo whitespace). > On Sat, 10 Aug 2002 weeguan@myrealbox.com wrote: > > KeyChain 1.9; http://www.gentoo.org/projects/keychain > > Copyright 2001 Gentoo Technologies, Inc.; Distributed under the GPL > > /usr/local/bin/keychain: 244: Syntax error: "||" unexpected Sounds like the same error. Adding a backslash at the end of that line after "||" will probably fix it, but I'm only guessing because I haven't seen that script. >> Has anything changed in /bin/sh that causes it to choke on this shell >> script? I am a newbie to shell scripts. Yes, our /bin/sh has been fixed. ;-) Regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "All that we see or seem is just a dream within a dream" (E. A. Poe) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message