We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1626e37 commit 65d49e6Copy full SHA for 65d49e6
pkg/lib/traverse-set.sh
@@ -222,14 +222,15 @@ bash_object.traverse-set() {
222
return
223
fi
224
225
- if ! eval "declare -gA $global_object_name=()"; then
+ if ! declare -gA "$global_object_name"; then
226
bash_object.util.die 'ERROR_INTERNAL' 'Eval declare failed'
227
228
229
+ local -n global_object="$global_object_name"
230
+ global_object=()
231
232
current_object["$key"]=$'\x1C\x1D'"type=object;&$global_object_name"
233
- local -n global_object="$global_object_name"
234
local -n object_to_copy_from="$final_value"
235
236
for key in "${!object_to_copy_from[@]}"; do
0 commit comments