#!/bin/sh bindir='/bin' case $1 in --__bindir) bindir=${2?}; shift; shift;; esac PATH=$bindir:$PATH exec zgrep --__bindir "$bindir" -F "$@"