X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=zfgrep.in;h=c458d96c00a9da37848ed19c88ea791a0daaa6a9;hb=c28fb32b29882d8ad5dfc8fc11e664199508bce8;hp=796236452cdae2f4729c34262168c518fa510528;hpb=800deb09b422a73c1212233a93839a223ff59678;p=debian%2Fgzip diff --git a/zfgrep.in b/zfgrep.in index 7962364..c458d96 100644 --- a/zfgrep.in +++ b/zfgrep.in @@ -1,3 +1,7 @@ #!/bin/sh -PATH=BINDIR:$PATH +bindir=@bindir@ +case $1 in +--__bindir) bindir=${2?}; shift; shift;; +esac +PATH=$bindir:$PATH exec zgrep -F "$@"