Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm having an issue getting readline commands in bash to work. I have some RHEL 4 boxes that execute the commands perfectly (control-e jumps to end of line, control-l clears the screen, etc...) but my RHEL 3 boxes don't behave as they should.
I've compared the /etc/inputrc files and they're identical, and I've even tried tweaking the file (changing the "#"\e[4~": end-of-line" entry to ""\C-e": end-of-line") but no change, even after sourcing /etc/profile which refers to /etc/inputrc.
I'm accessing the boxes via ssh, and AFAIK that shouldn't make a difference, as I'm accessing the RHEL 4 boxes the same way with no issues.
Can anyone shed some light on this? It would be greatly appreciated...
Verify you're using the same shell on both after login. You might be running bash on one and ksh on the other. Also there are two flavors or ksh out there for RHEL. pdksh was the older one which wasn't POSIX compliant. The ksh package is however. If using ksh you want to type "rpm -qa |grep ksh" to see which you have installed on each.
On the non-working machine do:
export OLDOPTS=$SHELLOPTS
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
Test your command.
Once done to revert to original settings just type:
SHELLOPTS=$OLDOPTS
Personally I don't care for emacs so I'd change it permanently to vi on both sides but since you're saying it "works" on the one with emacs that's the one you'd want to try.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.