#!/usr/bin/env bash
# some magic to find out the real location of this script dealing with symlinks
DIR=$(realpath "$0" )
DIR=$(readlink "$DIR") || DIR="$0";
DIR=$(dirname "$DIR");
cd "$DIR"
DIR=`pwd`
cd - > /dev/null 
# disable parameter expansion to forward all arguments unprocessed to the VM
set -f
# run the VM and pass along all arguments as is
image_name="$1"
shift
"$DIR"/pharo "$image_name" --interactive "$@"
