From nobody@FreeBSD.org  Thu Aug  8 05:12:48 2002
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 774DE37B405
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  8 Aug 2002 05:12:48 -0700 (PDT)
Received: from www.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 7E24443E70
	for <freebsd-gnats-submit@FreeBSD.org>; Thu,  8 Aug 2002 05:12:16 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.4/8.12.4) with ESMTP id g78CCAOT016897
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 8 Aug 2002 05:12:10 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.4/8.12.4/Submit) id g78CCAQf016896;
	Thu, 8 Aug 2002 05:12:10 -0700 (PDT)
Message-Id: <200208081212.g78CCAQf016896@www.freebsd.org>
Date: Thu, 8 Aug 2002 05:12:10 -0700 (PDT)
From: Robin Smith <rasmith@tamu.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: small error in /usr/libexec/locate.mklocatedb
X-Send-Pr-Version: www-1.0

>Number:         41445
>Category:       misc
>Synopsis:       small error in /usr/libexec/locate.mklocatedb
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 08 05:20:01 PDT 2002
>Closed-Date:    Fri Aug 09 10:13:07 PDT 2002
>Last-Modified:  Fri Aug 09 10:13:07 PDT 2002
>Originator:     Robin Smith
>Release:        4.6-STABLE
>Organization:
Texas A&M University
>Environment:
FreeBSD philosophy.tamu.edu 4.6-STABLE FreeBSD 4.6-STABLE #3: Thu Jun 27 14:36:10 CDT 2002   rasmith@philosophy.tamu.edu:/usr/obj/usr/src/sys/PHILOSOPHY  i386 
FreeBSD aristotle.tamu.edu 4.6-STABLE FreeBSD 4.6-STABLE #0: Thu Jun 27 15:58:24 CDT 2002     root@aristotle.tamu.edu:/usr/obj/usr/src/sys/ARISTOTLE  i386
>Description:
Update of locate.updatedb dies with syntax error:
bash# /usr/libexec/locate.updatedb
/usr/libexec/locate.mklocatedb: 87: Syntax error: "||" unexpected
>How-To-Repeat:
Execute /usr/libexec/locate.updatedb on a system patched to -STABLE as    
of 2 Aug 2002.     
>Fix:
   Delete the newline between lines 86 and 87 of /usr/libexec/locate.mklocatedb so that line 86 becomes:
perl -ne '/^\s*[0-9]+\s(..)$/ && print $1 || exit 1' &gt; $bigrams || exit
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: schweikh 
State-Changed-When: Fri Aug 9 10:11:24 PDT 2002 
State-Changed-Why:  
Duplicate of a number of other PRs (already fixed). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=41445 
>Unformatted:
