HPCC-8130 Fixed IFS issue related to spaces in path in profile Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
@@ -47,7 +47,10 @@ HPCC_CONFIG=${HPCC_CONFIG:-${CONFIG_DIR}/${ENV_CONF_FILE}}
#SECTION=${1:-DEFAULT}
SECTION="DEFAULT"
+OIFS="${IFS}"
+unset IFS
source /etc/profile
+IFS="${OIFS}"
PATH_PREFIX=`cat ${HPCC_CONFIG} | sed -n "/\[${SECTION}\]/,/\[/p" | grep "^path *= *" | sed -e 's/^path *= *//'`