File tree Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -131,27 +131,16 @@ POSIX-arrays: `set_a_arr_el test_arr key="test value"`
131
131
132
132
##
133
133
134
- Bash: ` echo "value for 'key': '${test_arr[key]}'" `
135
-
136
- POSIX-arrays: ` get_a_arr_val test_arr value; echo "value for 'key': '$value'" `
137
-
138
- ##
139
-
140
134
Bash: ` unset test_arr[key] `
141
135
142
136
POSIX-arrays: ` unset_a_arr_el test_arr key `
143
137
##
144
138
145
- Bash: ` echo "test_arr has '${#test_arr[@]}' elements" `
146
-
147
- POSIX-arrays: ` get_a_arr_el_cnt test_arr el_cnt; echo "test_arr has '$el_cnt' elements" `
148
-
149
- ##
139
+ ### Getting values, keys and parameters
150
140
151
- ### Unsetting arrays
152
- Bash: ` unset temp_arr `
141
+ Bash: ` echo "value for 'key': '${test_arr[key]}'" `
153
142
154
- POSIX-arrays: ` unset_i_arr temp_arr `
143
+ POSIX-arrays: ` get_a_arr_val test_arr value; echo "value for 'key': '$value'" `
155
144
156
145
##
157
146
@@ -171,6 +160,11 @@ Bash: `echo "test_arr has '${#test_arr[@]}' elements"`
171
160
172
161
POSIX-arrays: ` get_a_arr_el_cnt test_arr el_cnt; echo "test_arr has '$el_cnt' elements" `
173
162
163
+ ### Unsetting arrays
164
+ Bash: ` unset temp_arr `
165
+
166
+ POSIX-arrays: ` unset_i_arr temp_arr `
167
+
174
168
### Working with loops
175
169
176
170
Bash:
You can’t perform that action at this time.
0 commit comments