From f56ae2ed9fe4a4889a86104ab575829325e605ef Mon Sep 17 00:00:00 2001 From: Gerardo Tauriello <gerardo.tauriello@unibas.ch> Date: Fri, 27 Apr 2018 15:37:06 +0200 Subject: [PATCH] Fixed IFS handling in ost launcher (used to break on Macs). --- scripts/ost.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/ost.in b/scripts/ost.in index aca9ea26e..6026d7f62 100755 --- a/scripts/ost.in +++ b/scripts/ost.in @@ -36,7 +36,7 @@ source "$OST_EXEC_DIR/ost_config" ACTION="$1" OST_SCRIPT="${OST_EXEC_DIR}/ost-${ACTION}" -IFS="#" +OLDIFS=$IFS if test -e "${OST_SCRIPT}" ; then opts="" for argument in "${@:2}";do @@ -46,6 +46,7 @@ if test -e "${OST_SCRIPT}" ; then opts="$argument" fi done + IFS="#" $pyexec -c "execfile('$DNG_ROOT/@LIBDIR@/python@PYTHON_VERSION@/site-packages/ost/ost_startup.py')" "${OST_SCRIPT}" $opts else opts="" @@ -56,7 +57,9 @@ else opts="$argument" fi done + IFS="#" $pyexec $interactive -c "execfile('$DNG_ROOT/@LIBDIR@/python@PYTHON_VERSION@/site-packages/ost/ost_startup.py')" $opts RC=$? exit $RC fi +IFS=$OLDIFS -- GitLab