#!/bin/sh if ! [ "-u" = "$1" ] && ! [ "list" = "$2" ]; then echo "Bad call" >&2 exit 1 fi shift 2 exec "$@"