NetBSD Problem Report #39648

From www@NetBSD.org  Mon Sep 29 09:07:49 2008
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 4824A63BD01
	for <gnats-bugs@gnats.netbsd.org>; Mon, 29 Sep 2008 09:07:49 +0000 (UTC)
Message-Id: <20080929090749.16F1E63BCFE@narn.NetBSD.org>
Date: Mon, 29 Sep 2008 09:07:49 +0000 (UTC)
From: kordex@gmail.com
Reply-To: kordex@gmail.com
To: gnats-bugs@NetBSD.org
Subject: pkgsrc/pkglocate --help enters a loop of `grep --help`
X-Send-Pr-Version: www-1.0

>Number:         39648
>Category:       pkg
>Synopsis:       pkgsrc/pkglocate --help enters a loop of `grep --help`
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    agc
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 29 09:10:01 +0000 2008
>Closed-Date:    Thu Nov 11 19:58:33 +0000 2010
>Last-Modified:  Thu Nov 11 20:00:03 +0000 2010
>Originator:     Mikko Kortelainen
>Release:        -
>Organization:
-
>Environment:
FreeBSD lilian.xnet.kx 7.0-RELEASE FreeBSD 7.0-RELEASE #3: Sat Sep 27 20:36:01 UTC 2008     root@lilian.xnet.kx:/usr/obj/usr/src/sys/LILIAN_KERN  i386

>Description:
cd /usr/pkgsrc/
./pkglocate --help
Enters to (endless?) loop of grep --help.
>How-To-Repeat:
cd /usr/pkgsrc/
./pkglocate --help
>Fix:
None.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->agc
Responsible-Changed-By: wiz@NetBSD.org
Responsible-Changed-When: Mon, 29 Sep 2008 09:51:52 +0000
Responsible-Changed-Why:
Over to author.


State-Changed-From-To: open->closed
State-Changed-By: agc@NetBSD.org
State-Changed-When: Thu, 11 Nov 2010 19:58:33 +0000
State-Changed-Why:
I checked in a fix for this - sorry to take so long over it:

% ./pkglocate --help
Usage: pkglocate [-i] [-f] [-p] [-v] word
       [-i] ignore case when searching
       [-f] look for a file, rather than a word or phrase
       [-p] (NOT AVAILABLE - needs glimpse package installed) use approximate matching
       [-v] be verbose

Thanks for the bug report!


From: "Alistair G. Crooks" <agc@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/39648 CVS commit: pkgsrc
Date: Thu, 11 Nov 2010 19:56:35 +0000

 Module Name:	pkgsrc
 Committed By:	agc
 Date:		Thu Nov 11 19:56:34 UTC 2010

 Modified Files:
 	pkgsrc: pkglocate

 Log Message:
 Fix PR 39648:

 	pkglocate --help enters a loop of `grep --help`

 by checking the argument before passing it to grep.  Please note that
 "grep -e" can't be used because of Solaris options, although I hope to
 address that in the next commit.


 To generate a diff of this commit:
 cvs rdiff -u -r1.9 -r1.10 pkgsrc/pkglocate

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.