diff --git a/bin/foamCleanPath b/bin/foamCleanPath index f54575a8d9..02f7a293a6 100755 --- a/bin/foamCleanPath +++ b/bin/foamCleanPath @@ -226,12 +226,25 @@ done IFS="$oldIFS" # Restore initial IFS +# Output: +# +# For eval mode, add quotes around the argument. +# - eg, <. PATH="path1;path2;..."> +# +# With regular output, any quoting would be done on the caller side. +# - eg, $dirList<" if [ -n "$optVerbose" ] then echo "output: \"$dirList\"" 1>&2 fi -echo "$shellOutput\"$dirList\"" +if [ -n "$shellOutput" ] +then + echo "$shellOutput\"$dirList\"" +else + echo "$dirList" +fi #------------------------------------------------------------------------------