Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#1497 - bash history not working properly

Attached to Project: Arch Linux
Opened by David Rosenstrauch (darose) - Tuesday, 21 September 2004, 19:47 GMT
Last edited by Judd Vinet (judd) - Wednesday, 22 September 2004, 15:57 GMT
Task Type Bug Report
Category Packages: Current
Status Closed
Assigned To Judd Vinet (judd)
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7 Wombat
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Consider the following 2 use cases of using bash history:

#1:
* open up an xterm (e.g., konsole)
* press the up arrow key
* the previous command in the bash history will be displayed
* press the down arrow key
* the command will disappear and there will be an empty command prompt

#2:
* open up an xterm (e.g., konsole)
* press the up arrow key twice
* the 2nd previous command in the bash history will be displayed
* press the down arrow key twice
* the command does not disappear; the previous command is still displayed

Problem is with #2; it should work like #1. The previous command should not be displayed; rather there should be an empty command prompt.


Workaround: Press Ctrl-C. That will end the bash history session and show another command prompt which will be empty.
   bash-history.patch (1.2 KiB)
   PKGBUILD.patch (0.9 KiB)
This task depends upon

Closed by  Judd Vinet (judd)
Monday, 04 October 2004, 00:25 GMT
Reason for closing:  Fixed
Comment by Judd Vinet (judd) - Wednesday, 22 September 2004, 15:57 GMT
Yep, I can reproduce this.

Unfortunately, it's probably an upstream thing.
Comment by Oliver Burnett-Hall (olly-bh) - Saturday, 02 October 2004, 00:17 GMT
Yes, this is an upstream bug. There's an official patch to fix this - http://lists.gnu.org/archive/html/bug-bash/2004-09/msg00087.html

The patch on that message has got a bit mangled by conversion to HTML, so I've regenerated it.

When rebuilt bash appears to have the correct history behaviour - I haven't tested it extensively as I don't use bash (IMNSHO the best solution for this would be 'ln -sh /bin/zsh /bin/bash' :)

- olly
Comment by Rafal Szczepaniak (lanrat) - Saturday, 02 October 2004, 18:07 GMT
Just to clarify things. Official archive for bash patches is

ftp://ftp.cwru.edu/pub/bash/bash-3.0-patches/

Looks like there are now 13 of them.The one that is supposed to fix down arrow key behaviour is 005.
Comment by David Rosenstrauch (darose) - Sunday, 03 October 2004, 00:34 GMT
Would the pkg. maintainer be willing to do a new PKGBUILD that includes the patches? Or is it better to just wait for the next release? (3.1?)

Loading...