Skip to content

Commit

Permalink
Not all OS have grep(1) in /usr/bin/grep, some have it in /sbin/grep,…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
jschauma committed Jul 4, 2004
1 parent 7563c0e commit 2ce0c09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkglocate
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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=""
Expand Down

0 comments on commit 2ce0c09

Please sign in to comment.