From owner-freebsd-questions Thu Aug 8 9:40:53 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 4D87037B400 for ; Thu, 8 Aug 2002 09:40:49 -0700 (PDT) Received: from labs.unixhideout.com (dsl-65-187-193-189.telocity.com [65.187.193.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F09B43E6A for ; Thu, 8 Aug 2002 09:40:48 -0700 (PDT) (envelope-from root@unixhideout.com) Received: from unixhideout.com (webserver@localhost.unixhideout.com. [192.168.1.20]) by labs.unixhideout.com (8.12.5/8.12.3) with SMTP id g78GenZY046105 for ; Thu, 8 Aug 2002 12:40:49 -0400 (EDT) (envelope-from root@unixhideout.com) Received: from 192.168.1.10 (SquirrelMail authenticated user sagacious) by email.unixhideout.com with HTTP; Thu, 8 Aug 2002 12:40:49 -0400 (EDT) Message-ID: <1796.192.168.1.10.1028824849.squirrel@email.unixhideout.com> Date: Thu, 8 Aug 2002 12:40:49 -0400 (EDT) Subject: Re: locate.updatedb problem From: "Mike" To: In-Reply-To: <3D529D9A.1040805@owt.com> References: <200208081701.43197.keanu@keanu.be> <3D529D9A.1040805@owt.com> X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal Reply-To: root@unixhideout.com X-Mailer: SquirrelMail (version 1.2.7) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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? > -- > Kent Stewart > Richland, WA > http://users.owt.com/kstewart/index.html > I have a lot of people on my lists complaining of similar errors. For example one of their rc.d scripts (mysql-server.sh) no longer "works" and gives the same error. I believe your problem is the src you got, or something that was broken. Try editing your cvsup file, and getting source from a different server, running the update, and then build your world. That would be my suggestion. -- Those of you who act like you know everything are very annoying to those of us who do. You can easily play a joke on a man who likes to argue, just agree with him. Need to get a hold of me? finger sagacious@unixhideout.com ----------------------------------------- Free email that kicks ass from UnixHideout "The UnixHideout network" http://www.unixhideout.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message