Skip to content

Commit 95b76b0

Browse files
committed
removed the ASCII prefix (unneeded for the -mini version)
1 parent 8f4fafb commit 95b76b0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

posix-arrays-a-mini.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ set_a_arr_el() {
4040
_check_vars "$_arr_name" "$___key" || return 1
4141

4242
eval "___keys=\"\${_a_${_arr_name}___keys}\"
43-
_a_${_arr_name}_${___key}"='${_el_set_flag}${___new_val}'
43+
_a_${_arr_name}_${___key}"='${___new_val}'
4444

4545
case "$___keys" in
4646
*"$_nl$___key"|*"$_nl$___key$_nl"* ) ;;
@@ -59,8 +59,7 @@ get_a_arr_val() {
5959
_arr_name="$1"; ___key="$2"; _out_var="$3"
6060
_check_vars "$_arr_name" "$___key" "$_out_var" || return 1
6161

62-
eval "___val=\"\$_a_${_arr_name}_${___key}\""
63-
eval "$_out_var"='${___val#"${_el_set_flag}"}'
62+
eval "$_out_var=\"\$_a_${_arr_name}_${___key}\""
6463
}
6564

6665

@@ -88,4 +87,3 @@ set -f
8887
export LC_ALL=C
8988
___nl='
9089
'
91-
: "${_el_set_flag:="$(printf '\35')"}"

0 commit comments

Comments
 (0)