Commit 1a7a479 1 parent 1e0930e commit 1a7a479 Copy full SHA for 1a7a479
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -251,9 +251,9 @@ item in order. An item in the initializer list must be in the forms
251
251
a+=([k]=5) # This overwrites an element in the original
252
252
# array. The result is ([a]=3 [b]=4 [k]=5).
253
253
254
- As a special rule, when the first initializer form does not have ` [<key> ]= ` or
255
- ` [<key> ]+= ` , the initializer items are treated as a sequence of `key1 value1
256
- key2 value2 key3 value3 ...`.
254
+ As a special rule, when the first initializer form does not have ` [KEY ]= ` or
255
+ ` [KEY ]+= ` , the initializer items are treated as a sequence of `KEY1 VALUE1 KEY2
256
+ VALUE2 KEY3 VALUE3 ...` . OSH disables this feature when ` strict_array` is set .
257
257
258
258
declare -A a=(1 2 3 4) # This creates a BashAssoc with two elements,
259
259
# ([1]=2 [3]=4)
You can’t perform that action at this time.
0 commit comments