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


Groups > gnu.bash.bug > #15884

Bash-5.0 Official Patch 14

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Bash-5.0 Official Patch 14
Date Mon, 10 Feb 2020 11:24:50 -0500
Lines 58
Sender Chet Ramey <chet@caleb.ins.cwru.edu>
Approved bug-bash@gnu.org
Message-ID <mailman.623.1581352282.2412.bug-bash@gnu.org> (permalink)
References <200210162450.AA01596.SM@caleb.ins.cwru.edu>
Reply-To chet.ramey@case.edu
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Trace usenet.stanford.edu 1581352282 23736 209.51.188.17 (10 Feb 2020 16:31:22 GMT)
X-Complaints-To action@cs.stanford.edu
Cc chet.ramey@case.edu
To bug-bash@gnu.org
Envelope-to bug-bash@gnu.org
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=case.edu; s=smtp-primary; t=1581352276; bh=W3ap64WCeDOcEc3qySKjb/gfj77VKtu+bG6ALeSD2NM=; h=Date:From:Sender:To:Subject:Cc:Reply-To:Message-ID:MIME-Version: Content-Type; b=mVIW814SEQLH0mSfCv6Z+lDy1LlGcRqPnehUPtioeJmynsGF2MvXnphfrk5it/HkGl D+sLmYABTJEoyKfEStVuhGV61Hb3ok4t/IFzR0X79DAxOpR5BeQkgVwr9h3lUpTRHeK AzplJxdsop3zICfvdQbktECKiT4DtuPA1E7psr6nc+3lGwT3W6LQuIEJoLa4nn6BiaG xVJAVNQ+fh6C3MukAmKIF3HLe89RS/KzL5ImbmoVCkoOep8OVj812SMg91UA266o6/u I4uTHy38FGAriUyQkifLrwRu581QWoWacw5nTMsuf3UlqEIOlFc07yk1AZjozHaXC6c QapF4Ocw==
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=case.edu; s=smtp-primary; t=1581351914; bh=IISQpgW89SwxMwB7+db6dwaN7AjwCzgw4l8Oz6sIP4o=; h=Date:From:Sender:To:Subject:Cc:Reply-To:Message-ID:MIME-Version: Content-Type; b=EJr1piwA9ZwuuAaeASMeT5yV0SxBJ9I9y/ZXo/2z0c2IFYi9S5US3dfIqvCqxbQEGg NtTAzRI7xJpurEHisGNGgG1+Eoob5syT9tLMXoV5j5cugxuunHatSDR15dZgYKDYyHC 0SqOtHOD2UGhlixWHvat2awPhJL70VyzGTXaNiz/2fCJb6fLzPFmDdBJanEH9ySvNCq zcL/2zA3Tzfkilq8TktJChC8VzjSr9Ymh1kIsXaQtU6G/HIX5fntHH8vJJfhLdJOpih hNLSlTLXyEQdzUwwCb5Y8FM7r3wR1KZNWvkZvLyEx/70KFgu54wzlu7Yjisk16H5c0g tWsaIcZw==
Read-Receipt-To chet.ramey@case.edu
X-Junkmail-Status score=7/80, host=mpv2-2015.case.edu
X-Junkmail-PrAS-Raw score=7/80, refid=2.7.2:2020.2.10.155718:17:7.944, ip=, rules=DKIM_SIGNATURE, DATE_TZ_NA, __HAS_FROM, FROM_EDU_TLD, __HAS_SENDER, __TO_MALFORMED_2, __TO_NO_NAME, __HAS_CC_HDR, __HAS_REPLYTO, __HAS_MSGID, __SANE_MSGID, __MIME_VERSION, __CT, __CT_TEXT_PLAIN, __REPLYTO_SAMEAS_FROM_ADDY, __REPLYTO_SAMEAS_FROM_ACC, __FROM_DOMAIN_IN_ANY_CC1, __REPLYTO_SAMEAS_FROM_DOMAIN, __DKIM_ALIGNS_1, __DKIM_ALIGNS_2, __URI_HAS_HYPHEN_USC, __ANY_URI, __URI_MAILTO, __HTTPS_URI, __URI_WITH_PATH, __URI_ENDS_IN_SLASH, URI_ENDS_IN_HTML, __URI_NO_WWW, __STOCK_PHRASE_24, __CP_URI_IN_BODY, __SUBJ_ALPHA_NEGATE, __MULTIPLE_URI_TEXT, __URI_IN_BODY, __URI_NOT_IMG, __BODY_NO_MAILTO, __NO_HTML_TAG_RAW, BODY_SIZE_1900_1999, BODYTEXTP_SIZE_3000_LESS, __MIME_TEXT_P1, __MIME_TEXT_ONLY, __URI_NS, SXL_IP_TFX_WM[202.103.22.129.fur], HTML_00_01, HTML_00_10, DKIM_ALIGNS, KNOWN_MTA_TFX, BODY_SIZE_5000_LESS, __FROM_DOMAIN_IN_RCPT, MULTIPLE_REAL_RCPTS, [TRUNCATED], so=2010-03-03 19:42:08, dmn=2016-08-03-0138
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy]
X-Received-From 129.22.103.227
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <200210162450.AA01596.SM@caleb.ins.cwru.edu>
Xref csiph.com gnu.bash.bug:15884

Show key headers only | View raw


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

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

Bug-Reported-by:	Johannes Hielscher <jhielscher@posteo.de>
Bug-Reference-ID:	<20190208205048.77c25a83@hordevm>
Bug-Reference-URL:	https://lists.gnu.org/archive/html/bug-bash/2019-02/msg00032.html

Bug-Description:

If the current line is empty, using the emacs C-xC-e binding to enter the
editor will edit the previous command instead of the current (empty) one.

Patch (apply with `patch -p0'):

*** ../bash-5.0-patched/bashline.c	2019-01-16 16:13:21.000000000 -0500
--- bashline.c	2019-02-11 11:18:57.000000000 -0500
***************
*** 962,970 ****
  	 finished with the command, so we should not ignore the last command */
        using_history ();
!       if (rl_line_buffer[0])
! 	{
! 	  current_command_line_count++;	/* for rl_newline above */
! 	  bash_add_history (rl_line_buffer);
! 	}
        current_command_line_count = 0;	/* for dummy history entry */
        bash_add_history ("");
--- 965,970 ----
  	 finished with the command, so we should not ignore the last command */
        using_history ();
!       current_command_line_count++;	/* for rl_newline above */
!       bash_add_history (rl_line_buffer);
        current_command_line_count = 0;	/* for dummy history entry */
        bash_add_history ("");
*** ../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 13
  
  #endif /* _PATCHLEVEL_H_ */
--- 26,30 ----
     looks for to find the patch level (for the sccs version string). */
  
! #define PATCHLEVEL 14
  
  #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 | Unroll thread


Thread

Bash-5.0 Official Patch 14 Chet Ramey <chet.ramey@case.edu> - 2020-02-10 11:24 -0500

csiph-web