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 8f4fafb commit 95b76b0Copy full SHA for 95b76b0
posix-arrays-a-mini.sh
@@ -40,7 +40,7 @@ set_a_arr_el() {
40
_check_vars "$_arr_name" "$___key" || return 1
41
42
eval "___keys=\"\${_a_${_arr_name}___keys}\"
43
- _a_${_arr_name}_${___key}"='${_el_set_flag}${___new_val}'
+ _a_${_arr_name}_${___key}"='${___new_val}'
44
45
case "$___keys" in
46
*"$_nl$___key"|*"$_nl$___key$_nl"* ) ;;
@@ -59,8 +59,7 @@ get_a_arr_val() {
59
_arr_name="$1"; ___key="$2"; _out_var="$3"
60
_check_vars "$_arr_name" "$___key" "$_out_var" || return 1
61
62
- eval "___val=\"\$_a_${_arr_name}_${___key}\""
63
- eval "$_out_var"='${___val#"${_el_set_flag}"}'
+ eval "$_out_var=\"\$_a_${_arr_name}_${___key}\""
64
}
65
66
@@ -88,4 +87,3 @@ set -f
88
87
export LC_ALL=C
89
___nl='
90
'
91
-: "${_el_set_flag:="$(printf '\35')"}"
0 commit comments