Browse Source

Merge pull request #3574 from pschwartz/HPCC-8130_profile_regression

HPCC-8130 Fixed IFS issue related to spaces in path in profile

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 12 years ago
parent
commit
997fff3e58
1 changed files with 3 additions and 0 deletions
  1. 3 0
      initfiles/sbin/hpcc_setenv.in

+ 3 - 0
initfiles/sbin/hpcc_setenv.in

@@ -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 *= *//'`