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 2d9b140 commit 9d9f28fCopy full SHA for 9d9f28f
posix-arrays-i-mini.sh
@@ -40,12 +40,12 @@ set_i_arr_el() {
40
_check_vars "$_arr_name" || return 1
41
check_index || return 1
42
43
- eval "_indices=\"\${_a_${_arr_name}_indices}\"
+ eval "_indices=\"\${_i_${_arr_name}_indices}\"
44
_i_${_arr_name}_${_index}"='${_el_set_flag}${___new_val}'
45
46
case "$_indices" in
47
- *"$_nl$__index"|*"$_nl$_index$_nl"* ) ;;
48
- *) eval "_a_${_arr_name}_indices=\"$__indices$_nl$_index\""
+ *"$_nl$_index"|*"$_nl$_index$_nl"* ) ;;
+ *) eval "_i_${_arr_name}_indices=\"$_indices$_nl$_index\""
49
esac
50
return 0
51
}
0 commit comments