Skip to content

Commit d2ca74f

Browse files
Update BASH-TRANSLATION-EXAMPLES.md
1 parent 011787c commit d2ca74f

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

BASH-TRANSLATION-EXAMPLES.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -131,27 +131,16 @@ POSIX-arrays: `set_a_arr_el test_arr key="test value"`
131131

132132
##
133133

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-
140134
Bash: `unset test_arr[key]`
141135

142136
POSIX-arrays: `unset_a_arr_el test_arr key`
143137
##
144138

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
150140

151-
### Unsetting arrays
152-
Bash: `unset temp_arr`
141+
Bash: `echo "value for 'key': '${test_arr[key]}'"`
153142

154-
POSIX-arrays: `unset_i_arr temp_arr`
143+
POSIX-arrays: `get_a_arr_val test_arr value; echo "value for 'key': '$value'"`
155144

156145
##
157146

@@ -171,6 +160,11 @@ Bash: `echo "test_arr has '${#test_arr[@]}' elements"`
171160

172161
POSIX-arrays: `get_a_arr_el_cnt test_arr el_cnt; echo "test_arr has '$el_cnt' elements"`
173162

163+
### Unsetting arrays
164+
Bash: `unset temp_arr`
165+
166+
POSIX-arrays: `unset_i_arr temp_arr`
167+
174168
### Working with loops
175169

176170
Bash:

0 commit comments

Comments
 (0)