From owner-freebsd-questions Thu Aug 8 9:34:59 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D755037B400 for ; Thu, 8 Aug 2002 09:34:55 -0700 (PDT) Received: from rutger.owt.com (rutger.owt.com [204.118.6.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D16C43E65 for ; Thu, 8 Aug 2002 09:34:55 -0700 (PDT) (envelope-from kstewart@owt.com) Received: from owt.com (owt-207-41-94-232.owt.com [207.41.94.232]) by rutger.owt.com (8.9.3/8.9.3) with ESMTP id JAA17300; Thu, 8 Aug 2002 09:34:38 -0700 Message-ID: <3D529D9A.1040805@owt.com> Date: Thu, 08 Aug 2002 09:34:34 -0700 From: Kent Stewart User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2 X-Accept-Language: en-us, es-mx MIME-Version: 1.0 To: keanu Cc: freebsd-questions@FreeBSD.ORG Subject: Re: locate.updatedb problem References: <200208081701.43197.keanu@keanu.be> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG keanu wrote: > after a world/kernel update, my updatedb no longer works > > <~> /usr/libexec/locate.updatedb > /usr/libexec/locate.mklocatedb: 87: Syntax error: "||" unexpected > > > <~> cat /usr/libexec/locate.mklocatedb > 85: $bigram < $filelist | $sort -nr | > 86: perl -ne '/^\s*[0-9]+\s(..)$/ && print $1 || exit 1' > $bigrams I located the vi prompt on line 86 and did a "j" which appended line 87 to it. I suspect that something changed is csh because there was a patch to the -current version of the script. Kent > 87: || exit 1 > 88: $code $bigrams < $filelist || exit 1 > > > (FreeBSD jessica.keanu.be 4.6-STABLE FreeBSD 4.6-STABLE #3: Wed Aug 7 > 20:09:04 CEST 2002 keanu@jessica.keanu.be:/usr/obj/usr/src/sys/Jessica > i386) > > anyone else had this problem? > any way to fix it? > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > . > > -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message