Accepting request 44201 from Base:System

checked in (request 44201)

OBS-URL: https://build.opensuse.org/request/show/44201
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=47
This commit is contained in:
OBS User autobuild 2010-07-30 10:31:47 +00:00 committed by Git OBS Bridge
parent 77c5fc8850
commit 9cd478cea6
2 changed files with 0 additions and 29 deletions

View File

@ -16,27 +16,3 @@ And the obvious patch:
else else
bind_array_variable (name, 0, value, aflags); bind_array_variable (name, 0, value, aflags);
} }
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);

View File

@ -1,8 +1,3 @@
-------------------------------------------------------------------
Thu Jul 29 17:06:51 CEST 2010 - werner@suse.de
- Add fix from mailing list to avoid crash
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Jul 19 09:54:50 CEST 2010 - werner@suse.de Mon Jul 19 09:54:50 CEST 2010 - werner@suse.de