Fixing bug with multiline string in properties.

main
Ad5001 9 months ago
parent ba000379d7
commit bb25c6e7a8
Signed by: Ad5001
GPG Key ID: EF45F9C6AFE20160
  1. 1
      README.md
  2. 2
      oop.sh

@ -126,3 +126,4 @@ Object usingObj "New"
$usingObj.print
```
**NOTE**: When `using` a namespace which contains static classes, please note that the static class file will be re-imported.
**NOTE**: `using` is not file contextual. So `using` a namespace will use it in every bash script.

@ -167,7 +167,7 @@ _accessProperty() {
varName=$1
prop=$2
if [ "$3" == "=" ]; then
eval "_${varName}_properties[$prop]='${@:4}'"
eval "_${varName}_properties[$prop]=\"${@:4}\""
else
eval "echo \${_${varName}_properties[$prop]}"
fi

Loading…
Cancel
Save