#!/bin/sh [ "$#" -lt 1 ] && { echo "runin cmd args" >&2; exit 1; } cd "$1"; shift exec "$@"