Otherwise, several utilities like rm and test can't resolve "~" properly.
Sigh.
echo "Error: not enough arguments."
echo "Usage: run-in-pagsh name command [arguments] ..."
exit 1
echo "Error: not enough arguments."
echo "Usage: run-in-pagsh name command [arguments] ..."
exit 1
-elif test ! -d "~/.run"; then
+elif test ! -d "$HOME/.run"; then
echo "Error: the ~/.run directory must exist before running this script."
exit 1
fi
# Use a different PID file for each program.
echo "Error: the ~/.run directory must exist before running this script."
exit 1
fi
# Use a different PID file for each program.
# The command to run.
shift
# The command to run.
shift