mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: too many quotes on cleaned env variables
- Added quoting to handle spaces in environment values in commit 50852b33
(#1007, #1008). However, quoting is only needed for eval mode.
In regular mode, quoting should not be part of the output, instead it
should be done on the caller side.
This commit is contained in:
@ -226,12 +226,25 @@ done
|
|||||||
|
|
||||||
IFS="$oldIFS" # Restore initial IFS
|
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, <cleaned="($foamClean -env=PATH foo)
|
||||||
|
|
||||||
printDebug "output>$dirList<"
|
printDebug "output>$dirList<"
|
||||||
if [ -n "$optVerbose" ]
|
if [ -n "$optVerbose" ]
|
||||||
then
|
then
|
||||||
echo "output: \"$dirList\"" 1>&2
|
echo "output: \"$dirList\"" 1>&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "$shellOutput" ]
|
||||||
|
then
|
||||||
echo "$shellOutput\"$dirList\""
|
echo "$shellOutput\"$dirList\""
|
||||||
|
else
|
||||||
|
echo "$dirList"
|
||||||
|
fi
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user