#!/bin/sh
# Usage: "indir <directory> <command>
# Moves to the specified directory, executes the command, and moves back.
# The "move back" is really unnecessary, since a shell script usually executes
# in a subprocess and so "cd" commands in it don't affect the parent process.
# However, if somebody running sh were to "source" this script rather than
# execute it, the final "cd" would make a difference.
current=`pwd`
cd $1
shift
$*
# cd $current
pwd
