bin/i

11 lines
110 B
Bash
Executable File

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