summaryrefslogtreecommitdiff
path: root/pkglocate
diff options
context:
space:
mode:
authorjschauma <jschauma>2004-07-04 16:12:10 +0000
committerjschauma <jschauma>2004-07-04 16:12:10 +0000
commit57005e533339e15a1fac09c41bc1fa887a91f09e (patch)
tree13c12a352a1da8af5982cc196cfd506e904f57dd /pkglocate
parent3702302bf2eef401254bef3568de7987439654f4 (diff)
downloadpkgsrc-57005e533339e15a1fac09c41bc1fa887a91f09e.tar.gz
Not all OS have grep(1) in /usr/bin/grep, some have it in /sbin/grep, some
in /bin/grep, others in /usr/xpg4/bin/grep. Since we don't have access to pkgsrc's variables, rely on grep(1) being in the PATH. Noted by Roland Illig on tech-pkg.
Diffstat (limited to 'pkglocate')
-rwxr-xr-xpkglocate4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkglocate b/pkglocate
index adf82e70c91..474b2fae1d3 100755
--- a/pkglocate
+++ b/pkglocate
@@ -1,6 +1,6 @@
#! /bin/sh
#
-# $NetBSD: pkglocate,v 1.8 2003/05/31 14:20:46 jmmv Exp $
+# $NetBSD: pkglocate,v 1.9 2004/07/04 16:12:10 jschauma Exp $
#
#-
# Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -52,7 +52,7 @@ PATH=${PATH}:/usr/sbin
case `pkg_info -e 'glimpse-*'` in
glimpse-*) grepname=agrep ;;
-*) grepname=/usr/bin/grep ;;
+*) grepname=grep ;;
esac
approx=""