Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 299041 Details for
Bug 438841
"fc -e 'edit' -1" edits wrong command
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Proposed patch
patch (text/plain), 1000 bytes, created by
john.haxby@oracle.com
on 2008-03-25 15:38:34 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
john.haxby@oracle.com
Created:
2008-03-25 15:38:34 UTC
Size:
1000 bytes
patch
obsolete
>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)) > { > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 438841
: 299041