rpms/bash/devel bash-3.2-fc.patch,NONE,1.1 bash.spec,1.166,1.167

Roman Rakus rrakus at fedoraproject.org
Mon Dec 15 13:47:36 UTC 2008


Author: rrakus

Update of /cvs/extras/rpms/bash/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv26122

Modified Files:
	bash.spec 
Added Files:
	bash-3.2-fc.patch 
Log Message:
Fix in fc builtin. Resolves: #438841

bash-3.2-fc.patch:

--- NEW FILE bash-3.2-fc.patch ---
diff -up bash-3.2/builtins/fc.def.fc bash-3.2/builtins/fc.def
--- bash-3.2/builtins/fc.def.fc	2006-07-28 02:44:09.000000000 +0100
+++ bash-3.2/builtins/fc.def	2008-03-13 17:21:15.000000000 +0000
@@ -290,11 +290,6 @@ fc_builtin (list)
      line was actually added (HISTIGNORE may have caused it to not be),
      so we check hist_last_line_added. */
 
-  /* "When not  listing, he fc command that caused the editing shall not be
-     entered into the history list." */
-  if (listing == 0 && hist_last_line_added)
-    delete_last_history ();
-
   last_hist = i - 1 - hist_last_line_added;
 
   if (list)
@@ -322,6 +317,11 @@ fc_builtin (list)
 	histbeg = histend = last_hist;
     }
 
+  /* "When not  listing, he fc command that caused the editing shall not be
+     entered into the history list." */
+  if (listing == 0 && hist_last_line_added)
+    delete_last_history ();
+
   /* We print error messages for line specifications out of range. */
   if ((histbeg < 0) || (histend < 0))
     {




Index: bash.spec
===================================================================
RCS file: /cvs/extras/rpms/bash/devel/bash.spec,v
retrieving revision 1.166
retrieving revision 1.167
diff -u -r1.166 -r1.167
--- bash.spec	15 Dec 2008 10:41:49 -0000	1.166
+++ bash.spec	15 Dec 2008 13:47:06 -0000	1.167
@@ -1,7 +1,7 @@
 Version: 3.2
 Name: bash
-Summary: The GNU Bourne Again shell (bash) version %{version}
-Release: 32%{?dist}
+Summary: The GNU Bourne Again shell version %{version}
+Release: 33%{?dist}
 Group: System Environment/Shells
 License: GPLv2+
 Url: http://www.gnu.org/software/bash
@@ -88,6 +88,7 @@
 Patch143: bash-3.2-ssh_source_bash.patch
 Patch144: bash-3.2-command_not_found.patch
 Patch145: bash-3.2-audit.patch
+Patch146: bash-3.2-fc.patch
 
 Requires(post): ncurses-libs
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -186,6 +187,7 @@
 %patch143 -p1 -b .ssh_source_bash
 %patch144 -p1 -b .command_not_found
 %patch145 -p1 -b .audit
+%patch146 -p1 -b .fc
 
 echo %{version} > _distribution
 echo %{release} > _patchlevel
@@ -327,6 +329,10 @@
 %doc doc/*.ps doc/*.0 doc/*.html doc/article.txt
 
 %changelog
+* Mon Dec 15 2008 Roman Rakus <rrakus at redhat.com> - 3.2-33
+- fc builtin fix
+  Resolves: #438841
+
 * Mon Dec 15 2008 Roman Rakus <rrakus at redhat.com> - 3.2-32
 - Enabling auditing
   Resolves: #476216




More information about the fedora-extras-commits mailing list