597ca50e66
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=e87262c330fd3c958759eea1aca04a8a
25 lines
520 B
Plaintext
25 lines
520 B
Plaintext
Roman Rakus <rrakus@redhat.com> writes:
|
|
> Repeated in the bash-4.0.38 and bash-4.1.7 by the script;
|
|
> #!/bin/bash
|
|
>
|
|
> typeset -Ai s
|
|
> y='*'
|
|
> z='['
|
|
> s[$y]=1
|
|
> s[$z]=2
|
|
> (( s[$z] = s[$z] + ${s[$y]} ))
|
|
> (( s[$y] = s[$y] + ${s[$z]} ))
|
|
> [[ ${s[$y]} = 4 ]] && echo "ok"
|
|
|
|
--- variables.c
|
|
+++ variables.c 2010-07-29 15:03:48.671425922 +0000
|
|
@@ -2398,7 +2398,7 @@ bind_int_variable (lhs, rhs)
|
|
#endif
|
|
v = bind_variable (lhs, rhs, 0);
|
|
|
|
- if (isint)
|
|
+ if (isint && v)
|
|
VSETATTR (v, att_integer);
|
|
|
|
return (v);
|