# This test needs to run `idris2` from a sub-folder. Get the absolute path. if [ "$(uname)" = Darwin ]; then IDRIS2_EXEC=$(zsh -c 'printf %s "$0:A"' "$1") else IDRIS2_EXEC="$(readlink -f -- "$1")" fi cd "folder with spaces" || exit "$IDRIS2_EXEC" --no-color --console-width 0 --no-banner Main.idr < ../input rm -rf build