Menu

#1 inst_common.sh GetConfigFromFile sets IFS

open
nobody
None
5
2010-08-25
2010-08-25
No

For some unknown reason, GetConfigFromFile() in inst_common.sh set IFS as follows:

IFS="
"

This breaks evaluation of variables with spaces in them. Later on I get errors like:

./util/install_modules/inst_common.sh: line 162: /bin/echo -e: No such file or directory

because ECHO="/bin/echo -e" and ${ECHO} now gets evaluated to '/bin/echo -e'.

I can't see any reason to set IFS. Removing the two lines that set it seems to work for me.

Discussion


Log in to post a comment.