Bug 30799
Summary: | bash2.x recognises "Home" key but not "End" key | ||
---|---|---|---|
Product: | [Retired] Red Hat Raw Hide | Reporter: | Bill Crawford <billc> |
Component: | setup | Assignee: | Bill Nottingham <notting> |
Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 1.0 | CC: | rvokal |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2001-03-06 23:58:08 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Bill Crawford
2001-03-06 11:22:57 UTC
This works for me in text mode and in konsole... It's broken in rxvt. Reassigning. bug is in /etc/inputrc ... /etc/inputrc is in setup... reassigning. (adding "\e[8~": end-of-line fixes rxvt) The real bug is in bash not picking this up from terminfo data ... but thanks for fixing this for RH. I'll have to figure out the bash problem myself (this happens on Solaris too, and they don't appear to have an "inputrc" file at all). No, bash works fine here running with TERM set to 'rxvt' in a different terminal, so I don't think it's a bash/terminfo problem, unless the terminfo for rxvt is wrong. In any case, will be added in setup-2.4.5-1. Um, it doesn't work with these: [root@fraser SPECS]# rpm -q setup bash $( rpm -qf $( which xterm ) ) setup-2.4.1-1 bash-2.04-17 XFree86-4.0.2-9 If I set TERM to rxvt, then neither Home nor End work as expected. In xterm, only Home works. It is the same on Solaris machines at work, so I believe this is a bash bug, rather than RH-specific. I'll try to look into it further, perhaps I need to file a report with the bash developers/maintainers. Oddly, though, it worked up to 7.0, and continued to work after a number of rpm -F runs over Raw Hide. I did a fresh Wolverine install and it's stopped working (although mostly things have improved :) I believe you need the setup package currently in rawhide for it to work normally on xterms. I'm downloading the Raw Hide snapshot from a mirror as I type, but I'm concerned that bash seems to be able to pick up the "Home" key from terminfo but not the "End" key ... bash 1.x worked OK. In fact this looks like a readline library issue. I found the real cause of the problem (which /etc/inputrc is just working round) ... bash uses the termcap interface by default, and also it tries to bind the 'kh' and 'kH'capabilities to beginning-of-line and end-of-line respectively. Unfortunately the xterm entry in terminfo.src defines 'kend' (termcap '@7') rather than 'kll' (termcap 'kH') so bash doesn't correctly bind the End key to end-of-line. A real solution would probably involve changing either the terminfo source, or hacking bash to look for the kend/@7 capability as well as or instead of the kll/kH capability. Is it worth me filing this updated report against ncurses or bash? Probably. |