Fix word splitting bug in calcRun()
This commit is contained in:
parent
f757185f57
commit
30992a303c
|
@ -342,7 +342,7 @@ calcAndRun() {
|
|||
((i++))
|
||||
done
|
||||
dim=$($function "$str")
|
||||
comm="${*//${dimName^^}/$dim}"
|
||||
comm=$(sed "s/${dimName^^}/$dim/g" <(echo "$@"))
|
||||
if [[ $comm != *"3>&1 1>&2 2>&3" ]]; then
|
||||
comm="${comm} 3>&1 1>&2 2>&3"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue