#!/bin/sh
if [ $# -lt 3 ]; then exit 1; fi
curdir="$(pwd)"
prog="$2"
cd "$1"
shift
$prog $@
cd $curdir