From e6e43279e1d30002e2daca1f404f08133a5a289c Mon Sep 17 00:00:00 2001 From: "N. Brouard" Date: Sat, 21 Apr 2018 21:13:27 +0000 Subject: [PATCH] Summary: Borrowed from gnuplot --- distributions/osx/imach | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/distributions/osx/imach b/distributions/osx/imach index b3c31a7..9a0ea22 100755 --- a/distributions/osx/imach +++ b/distributions/osx/imach @@ -1,8 +1,19 @@ #!/bin/bash +# Borrowed to gnuplot +# record prior dir +STARTDIR=`pwd` -read -d '' EXECUTE < /dev/null; then + shift 1 +fi + +cd "$STARTDIR" + +open -a Terminal "$BINDIR"/imach "$@" -- 2.43.0