Skip to content

Commit 9d9f28f

Browse files
posix-arrays-i-mini.sh: fixed copypaste mistake
1 parent 2d9b140 commit 9d9f28f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

posix-arrays-i-mini.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ set_i_arr_el() {
4040
_check_vars "$_arr_name" || return 1
4141
check_index || return 1
4242

43-
eval "_indices=\"\${_a_${_arr_name}_indices}\"
43+
eval "_indices=\"\${_i_${_arr_name}_indices}\"
4444
_i_${_arr_name}_${_index}"='${_el_set_flag}${___new_val}'
4545

4646
case "$_indices" in
47-
*"$_nl$__index"|*"$_nl$_index$_nl"* ) ;;
48-
*) eval "_a_${_arr_name}_indices=\"$__indices$_nl$_index\""
47+
*"$_nl$_index"|*"$_nl$_index$_nl"* ) ;;
48+
*) eval "_i_${_arr_name}_indices=\"$_indices$_nl$_index\""
4949
esac
5050
return 0
5151
}

0 commit comments

Comments
 (0)