summaryrefslogtreecommitdiff
path: root/pkglocate
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2004-07-04 16:12:10 +0000
committerjschauma <jschauma@pkgsrc.org>2004-07-04 16:12:10 +0000
commit2ce0c0915269ceabdd4c96f0324f9eea0ddbff67 (patch)
tree13c12a352a1da8af5982cc196cfd506e904f57dd /pkglocate
parent7563c0e74d048e932be93c885a6949ac523551fe (diff)
downloadpkgsrc-2ce0c0915269ceabdd4c96f0324f9eea0ddbff67.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=""