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