From 2ce0c0915269ceabdd4c96f0324f9eea0ddbff67 Mon Sep 17 00:00:00 2001 From: jschauma Date: Sun, 4 Jul 2004 16:12:10 +0000 Subject: 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. --- pkglocate | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkglocate') 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="" -- cgit v1.2.3