X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=zegrep.in;h=800210f48fa5fd435a6eddc3937c3c28005f5312;hb=4837ea600b0c15289ae734a0591e2dec5f2c1ede;hp=620b8cb6d72af8b4af0f8c67d411fa2b88ff0f37;hpb=800deb09b422a73c1212233a93839a223ff59678;p=debian%2Fgzip diff --git a/zegrep.in b/zegrep.in index 620b8cb..800210f 100644 --- a/zegrep.in +++ b/zegrep.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 -E "$@"