Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16563

Bash-5.0 Official Patch 18

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Bash-5.0 Official Patch 18
Date 2020-07-10 16:12 -0400
Message-ID <mailman.69.1594412001.2306.bug-bash@gnu.org> (permalink)
References <200710201251.AA33525.SM@caleb.ins.cwru.edu>

Show all headers | View raw


			     BASH PATCH REPORT
			     =================

Bash-Release:	5.0
Patch-ID:	bash50-018

Bug-Reported-by:	oguzismailuysal@gmail.com
Bug-Reference-ID:
Bug-Reference-URL:	https://lists.gnu.org/archive/html/bug-bash/2019-10/msg00098.html

Bug-Description:

In certain cases, bash does not perform quoted null removal on patterns
that are used as part of word expansions such as ${parameter##pattern}, so
empty patterns are treated as non-empty.

Patch (apply with `patch -p0'):

*** ../bash-5.0.17/subst.c	2020-04-02 17:14:58.000000000 -0400
--- subst.c	2020-07-09 15:28:19.000000000 -0400
***************
*** 5113,5116 ****
--- 5113,5118 ----
  				      (int *)NULL, (int *)NULL)
  	     : (WORD_LIST *)0;
+   if (l)
+     word_list_remove_quoted_nulls (l);
    pat = string_list (l);
    dispose_words (l);

*** ../bash-5.0/patchlevel.h	2016-06-22 14:51:03.000000000 -0400
--- patchlevel.h	2016-10-01 11:01:28.000000000 -0400
***************
*** 26,30 ****
     looks for to find the patch level (for the sccs version string). */
  
! #define PATCHLEVEL 17
  
  #endif /* _PATCHLEVEL_H_ */
--- 26,30 ----
     looks for to find the patch level (for the sccs version string). */
  
! #define PATCHLEVEL 18
  
  #endif /* _PATCHLEVEL_H_ */

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
		 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Bash-5.0 Official Patch 18 Chet Ramey <chet.ramey@case.edu> - 2020-07-10 16:12 -0400

csiph-web