Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package bash for openSUSE:Factory checked in 
at 2024-01-17 22:14:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/bash (Old)
 and      /work/SRC/openSUSE:Factory/.bash.new.16006 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "bash"

Wed Jan 17 22:14:14 2024 rev:189 rq:1139152 version:5.2.MACRO

Changes:
--------
--- /work/SRC/openSUSE:Factory/bash/bash.changes        2023-11-17 
20:48:05.153855898 +0100
+++ /work/SRC/openSUSE:Factory/.bash.new.16006/bash.changes     2024-01-17 
22:14:18.800822921 +0100
@@ -1,0 +2,19 @@
+Tue Jan 16 08:49:57 UTC 2024 - Dr. Werner Fink <wer...@suse.de>
+
+- Add upstream patches
+  * bash52-022
+    It's possible for readline to try to zero out a line that's not
+    null-terminated, leading to a memory fault.
+  * bash52-023
+    Running `local -' multiple times in a shell function would
+    overwrite the original saved set of options.
+  * bash52-024
+    Fix bug where associative array compound assignment would not
+    expand tildes in values.
+  * bash52-025
+    Make sure a subshell checks for and handles any terminating
+    signals before exiting (which might have arrived after the
+    command completed) so the parent and any EXIT trap will see
+    the correct value for $?.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ bash.spec ++++++
--- /var/tmp/diff_new_pack.sTwZpt/_old  2024-01-17 22:14:19.744857588 +0100
+++ /var/tmp/diff_new_pack.sTwZpt/_new  2024-01-17 22:14:19.748857735 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package bash
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -105,13 +105,13 @@
 BuildRequires:  pkgconfig(audit)
 BuildRequires:  pkgconfig(ncurses)
 # This has to be always the same version as included in the bash its self
-BuildRequires:  pkgconfig(readline) = 8.2
+BuildRequires:  pkgconfig(readline) >= %{rl_version}
 %if %{with alternatives}
 Requires(post): update-alternatives
-Requires(post): libreadline%{rl_major} = %{rl_version}
+Requires(post): libreadline%{rl_major} >= %{rl_version}
 Requires(preun):update-alternatives
 %endif
-Requires:       libreadline%{rl_major} = %{rl_version}
+Requires:       libreadline%{rl_major} >= %{rl_version}
 Suggests:       bash-doc = %{version}
 Suggests:       command-not-found
 Provides:       /bin/bash

++++++ bash-5.2-patches.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bash-5.2-patches/bash52-016 
new/bash-5.2-patches/bash52-016
--- old/bash-5.2-patches/bash52-016     2023-11-09 22:25:43.000000000 +0100
+++ new/bash-5.2-patches/bash52-016     2023-11-15 09:28:19.690751525 +0100
@@ -15,7 +15,7 @@
 
 Patch (apply with `patch -p0'):
 
-*** ../bash-5.2-patched/execute_cmd.c  Thu Feb 23 14:15:05 2023
+*** execute_cmd.c      Thu Feb 23 14:15:05 2023
 --- execute_cmd.c      Mon Feb 27 17:53:08 2023
 ***************
 *** 3051,3055 ****
@@ -30,7 +30,7 @@
 !   new = make_word_list (make_word (temp ? temp : ""), (WORD_LIST *)NULL);
     free (temp);
   
-*** ../bash-5.2/patchlevel.h   2020-06-22 14:51:03.000000000 -0400
+*** patchlevel.h       2020-06-22 14:51:03.000000000 -0400
 --- patchlevel.h       2020-10-01 11:01:28.000000000 -0400
 ***************
 *** 26,30 ****
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bash-5.2-patches/bash52-017 
new/bash-5.2-patches/bash52-017
--- old/bash-5.2-patches/bash52-017     2023-11-09 22:25:58.000000000 +0100
+++ new/bash-5.2-patches/bash52-017     2023-11-15 09:28:19.722750948 +0100
@@ -15,7 +15,7 @@
 
 Patch (apply with `patch -p0'):
 
-*** ../bash-5.2-patched/builtins/evalfile.c    2019-07-20 16:16:08.000000000 
-0400
+*** builtins/evalfile.c        2019-07-20 16:16:08.000000000 -0400
 --- builtins/evalfile.c        2022-12-22 12:13:08.000000000 -0500
 ***************
 *** 267,271 ****
@@ -30,7 +30,7 @@
 !   pflags = SEVAL_RESETLINE|SEVAL_NOOPTIMIZE;
     pflags |= (flags & FEVAL_HISTORY) ? 0 : SEVAL_NOHIST;
   
-*** ../bash-5.2/patchlevel.h   2020-06-22 14:51:03.000000000 -0400
+*** patchlevel.h       2020-06-22 14:51:03.000000000 -0400
 --- patchlevel.h       2020-10-01 11:01:28.000000000 -0400
 ***************
 *** 26,30 ****
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bash-5.2-patches/bash52-018 
new/bash-5.2-patches/bash52-018
--- old/bash-5.2-patches/bash52-018     2023-11-09 22:26:13.000000000 +0100
+++ new/bash-5.2-patches/bash52-018     2023-11-15 09:28:19.758750299 +0100
@@ -26,7 +26,7 @@
 
 Patch (apply with `patch -p0'):
 
-*** ../bash-5.2-patched/parse.y        2022-12-13 12:09:02.000000000 -0500
+*** parse.y    2022-12-13 12:09:02.000000000 -0500
 --- parse.y    2023-11-08 14:29:13.000000000 -0500
 ***************
 *** 453,456 ****
@@ -3626,7 +3626,7 @@
         return (&matched_pair_error);
       }
 
-*** ../bash-5.2/patchlevel.h   2020-06-22 14:51:03.000000000 -0400
+*** patchlevel.h       2020-06-22 14:51:03.000000000 -0400
 --- patchlevel.h       2020-10-01 11:01:28.000000000 -0400
 ***************
 *** 26,30 ****
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bash-5.2-patches/bash52-019 
new/bash-5.2-patches/bash52-019
--- old/bash-5.2-patches/bash52-019     2023-11-09 22:26:26.000000000 +0100
+++ new/bash-5.2-patches/bash52-019     2023-11-15 09:28:19.798749578 +0100
@@ -17,7 +17,7 @@
 
 Patch (apply with `patch -p0'):
 
-*** ../bash-5.2-patched/jobs.c 2022-12-13 12:09:02.000000000 -0500
+*** jobs.c     2022-12-13 12:09:02.000000000 -0500
 --- jobs.c     2023-10-26 12:12:10.000000000 -0400
 ***************
 *** 3078,3084 ****
@@ -49,7 +49,7 @@
         /* Give the terminal to this job. */
         if (IS_JOBCONTROL (job))
 
-*** ../bash-5.2/patchlevel.h   2020-06-22 14:51:03.000000000 -0400
+*** patchlevel.h       2020-06-22 14:51:03.000000000 -0400
 --- patchlevel.h       2020-10-01 11:01:28.000000000 -0400
 ***************
 *** 26,30 ****
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bash-5.2-patches/bash52-020 
new/bash-5.2-patches/bash52-020
--- old/bash-5.2-patches/bash52-020     2023-11-09 22:26:39.000000000 +0100
+++ new/bash-5.2-patches/bash52-020     2023-11-15 09:28:19.830749000 +0100
@@ -15,7 +15,7 @@
 
 Patch (apply with `patch -p0'):
 
-*** ../bash-5.2-patched/parse.y        Tue Dec 13 12:53:21 2022
+*** parse.y    Tue Dec 13 12:53:21 2022
 --- parse.y    Fri Sep  1 10:36:28 2023
 ***************
 *** 3151,3154 ****
@@ -25,7 +25,7 @@
 +     case DOLPAREN:
         return 1;
       default:
-*** ../bash-5.2-patched/y.tab.c        Tue Dec 13 12:53:21 2022
+*** y.tab.c    Tue Dec 13 12:53:21 2022
 --- y.tab.c    Fri Sep  1 10:36:44 2023
 ***************
 *** 5466,5469 ****
@@ -36,7 +36,7 @@
         return 1;
       default:
 
-*** ../bash-5.2/patchlevel.h   2020-06-22 14:51:03.000000000 -0400
+*** patchlevel.h       2020-06-22 14:51:03.000000000 -0400
 --- patchlevel.h       2020-10-01 11:01:28.000000000 -0400
 ***************
 *** 26,30 ****
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bash-5.2-patches/bash52-021 
new/bash-5.2-patches/bash52-021
--- old/bash-5.2-patches/bash52-021     2023-11-09 22:26:57.000000000 +0100
+++ new/bash-5.2-patches/bash52-021     2023-11-15 09:28:19.866748351 +0100
@@ -15,7 +15,7 @@
 
 Patch (apply with `patch -p0'):
 
-*** ../bash-5.2-patched/subst.c        2022-12-13 12:08:58.000000000 -0500
+*** subst.c    2022-12-13 12:08:58.000000000 -0500
 --- subst.c    2022-12-14 09:09:53.000000000 -0500
 ***************
 *** 1694,1698 ****
@@ -44,7 +44,7 @@
          RESIZE_MALLOCED_BUFFER (result, result_index, tlen + 4, result_size, 
64);
          result[result_index++] = c;
 
-*** ../bash-5.2/patchlevel.h   2020-06-22 14:51:03.000000000 -0400
+*** patchlevel.h       2020-06-22 14:51:03.000000000 -0400
 --- patchlevel.h       2020-10-01 11:01:28.000000000 -0400
 ***************
 *** 26,30 ****
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bash-5.2-patches/bash52-022 
new/bash-5.2-patches/bash52-022
--- old/bash-5.2-patches/bash52-022     1970-01-01 01:00:00.000000000 +0100
+++ new/bash-5.2-patches/bash52-022     2024-01-14 01:13:20.000000000 +0100
@@ -0,0 +1,53 @@
+                            BASH PATCH REPORT
+                            =================
+
+Bash-Release:  5.2
+Patch-ID:      bash52-022
+
+Bug-Reported-by:       srobert...@peratonlabs.com
+Bug-Reference-ID:
+Bug-Reference-URL:     
https://lists.gnu.org/archive/html/bug-bash/2022-09/msg00049.html
+
+Bug-Description:
+
+It's possible for readline to try to zero out a line that's not null-
+terminated, leading to a memory fault.
+
+Patch (apply with `patch -p0'):
+
+*** ../bash-5.2-patched/lib/readline/display.c 2022-04-05 10:47:31.000000000 
-0400
+--- lib/readline/display.c     2022-12-13 13:11:22.000000000 -0500
+***************
+*** 2684,2692 ****
+  
+    if (visible_line)
+!     {
+!       temp = visible_line;
+!       while (*temp)
+!      *temp++ = '\0';
+!     }
+    rl_on_new_line ();
+    forced_display++;
+--- 2735,2740 ----
+  
+    if (visible_line)
+!     memset (visible_line, 0, line_size);
+! 
+    rl_on_new_line ();
+    forced_display++;
+
+*** ../bash-5.2/patchlevel.h   2020-06-22 14:51:03.000000000 -0400
+--- patchlevel.h       2020-10-01 11:01:28.000000000 -0400
+***************
+*** 26,30 ****
+     looks for to find the patch level (for the sccs version string). */
+  
+! #define PATCHLEVEL 21
+  
+  #endif /* _PATCHLEVEL_H_ */
+--- 26,30 ----
+     looks for to find the patch level (for the sccs version string). */
+  
+! #define PATCHLEVEL 22
+  
+  #endif /* _PATCHLEVEL_H_ */
Binary files old/bash-5.2-patches/bash52-022.sig and 
new/bash-5.2-patches/bash52-022.sig differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bash-5.2-patches/bash52-023 
new/bash-5.2-patches/bash52-023
--- old/bash-5.2-patches/bash52-023     1970-01-01 01:00:00.000000000 +0100
+++ new/bash-5.2-patches/bash52-023     2024-01-14 01:13:40.000000000 +0100
@@ -0,0 +1,64 @@
+                            BASH PATCH REPORT
+                            =================
+
+Bash-Release:  5.2
+Patch-ID:      bash52-023
+
+Bug-Reported-by:       Emanuele Torre <torreemanue...@gmail.com>
+Bug-Reference-ID:      <20230206140824.1710288-1-torreemanue...@gmail.com>
+Bug-Reference-URL:     
https://lists.gnu.org/archive/html/bug-bash/2023-02/msg00045.html
+
+Bug-Description:
+
+Running `local -' multiple times in a shell function would overwrite the
+original saved set of options.
+
+Patch (apply with `patch -p0'):
+
+*** ../bash-5.2-patched/builtins/declare.def   2023-01-04 20:40:28.000000000 
-0500
+--- builtins/declare.def       2023-02-08 15:36:49.000000000 -0500
+***************
+*** 421,429 ****
+        if (local_var && variable_context && STREQ (name, "-"))
+       {
+         var = make_local_variable ("-", 0);
+!        FREE (value_cell (var));              /* just in case */
+!        value = get_current_options ();
+!        var_setvalue (var, value);
+!        VSETATTR (var, att_invisible);
+         NEXT_VARIABLE ();
+       }
+--- 421,437 ----
+        if (local_var && variable_context && STREQ (name, "-"))
+       {
++        int o;
++ 
++        o = localvar_inherit;
++        localvar_inherit = 0;
+         var = make_local_variable ("-", 0);
+!        localvar_inherit = o;
+! 
+!        if (value_cell (var) == NULL)         /* no duplicate instances */
+!          {
+!            value = get_current_options ();
+!            var_setvalue (var, value);
+!            VSETATTR (var, att_invisible);
+!          }
+         NEXT_VARIABLE ();
+       }
+
+*** ../bash-5.2/patchlevel.h   2020-06-22 14:51:03.000000000 -0400
+--- patchlevel.h       2020-10-01 11:01:28.000000000 -0400
+***************
+*** 26,30 ****
+     looks for to find the patch level (for the sccs version string). */
+  
+! #define PATCHLEVEL 22
+  
+  #endif /* _PATCHLEVEL_H_ */
+--- 26,30 ----
+     looks for to find the patch level (for the sccs version string). */
+  
+! #define PATCHLEVEL 23
+  
+  #endif /* _PATCHLEVEL_H_ */
Binary files old/bash-5.2-patches/bash52-023.sig and 
new/bash-5.2-patches/bash52-023.sig differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bash-5.2-patches/bash52-024 
new/bash-5.2-patches/bash52-024
--- old/bash-5.2-patches/bash52-024     1970-01-01 01:00:00.000000000 +0100
+++ new/bash-5.2-patches/bash52-024     2024-01-14 01:13:56.000000000 +0100
@@ -0,0 +1,88 @@
+                            BASH PATCH REPORT
+                            =================
+
+Bash-Release:  5.2
+Patch-ID:      bash52-024
+
+Bug-Reported-by:       Marco <maroloc...@gmail.com>
+Bug-Reference-ID:      <eaf9af76-c4ed-8b61-c517-22ed98052...@gmail.com>
+Bug-Reference-URL:     
https://lists.gnu.org/archive/html/bug-bash/2023-02/msg00044.html
+
+Bug-Description:
+
+Fix bug where associative array compound assignment would not expand tildes
+in values.
+
+Patch (apply with `patch -p0'):
+
+*** ../bash-20230105/arrayfunc.c       Thu Jan  5 14:23:28 2023
+--- arrayfunc.c        Wed Feb  8 16:27:48 2023
+***************
+*** 651,655 ****
+       }             
+  
+!       aval = expand_subscript_string (v, 0);
+        if (aval == 0)
+       {
+--- 651,655 ----
+       }             
+  
+!       aval = expand_assignment_string_to_string (v, 0);
+        if (aval == 0)
+       {
+***************
+*** 843,847 ****
+        if (assoc_p (var))
+       {
+!        val = expand_subscript_string (val, 0);
+         if (val == 0)
+           {
+--- 843,847 ----
+        if (assoc_p (var))
+       {
+!        val = expand_assignment_string_to_string (val, 0);
+         if (val == 0)
+           {
+***************
+*** 1031,1035 ****
+    nword[i++] = w[ind++];
+  
+!   t = expand_subscript_string (w+ind, 0);
+    s = (t && strchr (t, CTLESC)) ? quote_escapes (t) : t;
+    value = sh_single_quote (s ? s : "");
+--- 1031,1035 ----
+    nword[i++] = w[ind++];
+  
+!   t = expand_assignment_string_to_string (w+ind, 0);
+    s = (t && strchr (t, CTLESC)) ? quote_escapes (t) : t;
+    value = sh_single_quote (s ? s : "");
+*** ../bash-20230201/subst.c   Mon Jan 30 16:19:46 2023
+--- subst.c    Mon Feb  6 16:25:22 2023
+***************
+*** 10803,10807 ****
+--- 10803,10811 ----
+    ret = (char *)NULL;
+  
++ #if 0
+    td.flags = W_NOPROCSUB|W_NOTILDE|W_NOSPLIT2;       /* XXX - W_NOCOMSUB? */
++ #else
++   td.flags = W_NOPROCSUB|W_NOSPLIT2; /* XXX - W_NOCOMSUB? */
++ #endif
+    td.word = savestring (string);             /* in case it's freed on error 
*/
+  
+
+*** ../bash-5.2/patchlevel.h   2020-06-22 14:51:03.000000000 -0400
+--- patchlevel.h       2020-10-01 11:01:28.000000000 -0400
+***************
+*** 26,30 ****
+     looks for to find the patch level (for the sccs version string). */
+  
+! #define PATCHLEVEL 23
+  
+  #endif /* _PATCHLEVEL_H_ */
+--- 26,30 ----
+     looks for to find the patch level (for the sccs version string). */
+  
+! #define PATCHLEVEL 24
+  
+  #endif /* _PATCHLEVEL_H_ */
Binary files old/bash-5.2-patches/bash52-024.sig and 
new/bash-5.2-patches/bash52-024.sig differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bash-5.2-patches/bash52-025 
new/bash-5.2-patches/bash52-025
--- old/bash-5.2-patches/bash52-025     1970-01-01 01:00:00.000000000 +0100
+++ new/bash-5.2-patches/bash52-025     2024-01-14 01:14:12.000000000 +0100
@@ -0,0 +1,46 @@
+                            BASH PATCH REPORT
+                            =================
+
+Bash-Release:  5.2
+Patch-ID:      bash52-025
+
+Bug-Reported-by:       Andrew Neff <andrew.n...@visionsystemsinc.com>
+Bug-Reference-ID:      
<sa1p110mb1357f68afd51bb225019eff48d...@sa1p110mb1357.namp110.prod.outlook.com>
+Bug-Reference-URL:     
https://lists.gnu.org/archive/html/bug-bash/2022-10/msg00100.html
+
+Bug-Description:
+
+Make sure a subshell checks for and handles any terminating signals before
+exiting (which might have arrived after the command completed) so the parent
+and any EXIT trap will see the correct value for $?.
+
+Patch (apply with `patch -p0'):
+
+*** ../bash-5.2.9/execute_cmd.c        2022-11-02 10:36:54.000000000 -0400
+--- execute_cmd.c      2022-10-27 16:52:55.000000000 -0400
+***************
+*** 1726,1729 ****
+--- 1726,1732 ----
+                                                    : EXECUTION_SUCCESS;
+  
++   /* Check for terminating signals before we return to our caller, which we
++      expect to exit immediately anyway. */
++   CHECK_TERMSIG;
+  
+    /* If we were explicitly placed in a subshell with (), we need
+
+*** ../bash-5.2/patchlevel.h   2020-06-22 14:51:03.000000000 -0400
+--- patchlevel.h       2020-10-01 11:01:28.000000000 -0400
+***************
+*** 26,30 ****
+     looks for to find the patch level (for the sccs version string). */
+  
+! #define PATCHLEVEL 24
+  
+  #endif /* _PATCHLEVEL_H_ */
+--- 26,30 ----
+     looks for to find the patch level (for the sccs version string). */
+  
+! #define PATCHLEVEL 25
+  
+  #endif /* _PATCHLEVEL_H_ */
Binary files old/bash-5.2-patches/bash52-025.sig and 
new/bash-5.2-patches/bash52-025.sig differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/bash-5.2-patches/bash52-026 
new/bash-5.2-patches/bash52-026
--- old/bash-5.2-patches/bash52-026     1970-01-01 01:00:00.000000000 +0100
+++ new/bash-5.2-patches/bash52-026     2024-01-14 01:14:32.000000000 +0100
@@ -0,0 +1,48 @@
+                            BASH PATCH REPORT
+                            =================
+
+Bash-Release:  5.2
+Patch-ID:      bash52-026
+
+Bug-Reported-by:       Stefan Klinger <readline-gnu....@stefan-klinger.de>
+Bug-Reference-ID:
+Bug-Reference-URL:     
https://lists.gnu.org/archive/html/bug-readline/2023-08/msg00018.html
+
+Bug-Description:
+
+The custom color prefix that readline uses to color possible completions
+must have a leading `.'.
+
+Patch (apply with `patch -p0'):
+
+*** ../bash-5.2-patched/lib/readline/colors.c  2021-12-08 11:38:25.000000000 
-0500
+--- lib/readline/colors.c      2023-08-28 16:40:04.000000000 -0400
+***************
+*** 74,78 ****
+  static void restore_default_color (void);
+  
+! #define RL_COLOR_PREFIX_EXTENSION    "readline-colored-completion-prefix"
+  
+  COLOR_EXT_TYPE *_rl_color_ext_list = 0;
+--- 74,78 ----
+  static void restore_default_color (void);
+  
+! #define RL_COLOR_PREFIX_EXTENSION    ".readline-colored-completion-prefix"
+  
+  COLOR_EXT_TYPE *_rl_color_ext_list = 0;
+
+*** ../bash-5.2/patchlevel.h   2020-06-22 14:51:03.000000000 -0400
+--- patchlevel.h       2020-10-01 11:01:28.000000000 -0400
+***************
+*** 26,30 ****
+     looks for to find the patch level (for the sccs version string). */
+  
+! #define PATCHLEVEL 25
+  
+  #endif /* _PATCHLEVEL_H_ */
+--- 26,30 ----
+     looks for to find the patch level (for the sccs version string). */
+  
+! #define PATCHLEVEL 26
+  
+  #endif /* _PATCHLEVEL_H_ */
Binary files old/bash-5.2-patches/bash52-026.sig and 
new/bash-5.2-patches/bash52-026.sig differ



++++++ get_version_number.sh ++++++
--- /var/tmp/diff_new_pack.sTwZpt/_old  2024-01-17 22:14:20.080869927 +0100
+++ /var/tmp/diff_new_pack.sTwZpt/_new  2024-01-17 22:14:20.084870074 +0100
@@ -13,5 +13,6 @@
 IFS=-
 last=($(tar --wildcards -tf ${sourcedir}/bash-${version}-patches.tar.bz2 
'*/bash[0-9][0-9]-*[0-9]' | sed -r 's@\.patch$@@'| sort -t '-' -k 3,3 -n | tail 
-n 1))
 IFS="$OFS"
-echo ${last[3]/*0/}
+shopt -s extglob
+echo ${last[3]##+(0)}
 

Reply via email to