CONFIG: improve shell env handling of paths with spaces (#1007, #1008)

- foamCleanPath now only splits the environment variable on ':', which
  allows other directories with spaces or '(..)' etc to pass through
  without major issue.

- The filter arguments are split on whitespace, colons or semi-colons.
This commit is contained in:
Mark Olesen
2018-10-15 21:37:46 +02:00
parent 5c8a1b746d
commit 50852b3392
18 changed files with 101 additions and 95 deletions

View File

@ -37,7 +37,7 @@ export ADIOS_ARCH_PATH=$WM_THIRD_PARTY_DIR/platforms/$WM_ARCH$WM_COMPILER/$adios
# END OF (NORMAL) USER EDITABLE PART
#------------------------------------------------------------------------------
if [ "$FOAM_VERBOSE" -a "$PS1" ]
if [ -n "$FOAM_VERBOSE" ] && [ -n "$PS1" ]
then
echo "Using adios ($adios_version) -> $ADIOS_ARCH_PATH" 1>&2
fi