Bash history navigation keys should be enabled in the config

Bug #1015744 reported by Alexander Kabakow
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
readline6 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Default bash shell setup should allow history navigation with page up and page down keys.
Default Gentoo /etc/inputrc do this.

There are bugs referencing this problem: #103986, #89235
By the way #103986 is almost five years old

Dear Matthias Klose,
Please apply this patch to the Precise Pangolin version package.

As far I see patch is working for my bash instance

Regards, Alex

Tags: patch bash
Revision history for this message
Alexander Kabakow (alexzak) wrote :
description: updated
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "1.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

tags: added: patch
Revision history for this message
Alexander Kabakow (alexzak) wrote :

I tested this patch on windows.
It works. I used MSys/MinGW environment that comes with windows version of git

By the way: forward-search-history is completely different feature from history-search-forward. They are just different

So why it is good to have this feature enabled by default:
* Ubuntu - Linux for Human Beings, so it is must have friendly default configurations
* Proposed configuration is well tested: Gentoo Linux have this feature enabled for years
* Proposed configuration works even in Windows
* New users may found this keystrokes easy to learn
* Part of bash users are moving to zsh because they don't now how to enable this feature

Here is blog post http://www.electrictoolbox.com/pageup-history-auto-completion-bash-shell/
Author of post describes how history-search-backward/history-search-forward features works

So. For example you have history:
* ssh host-a
* cd ~/tmp/some
* mkdir test
* cd test
* vim host-a.conf
* ssh host-b
* ls
* cd ~/projects/kde-base
* make

You want to connect by ssh to host-a now
You can:
* Type ssh and press PageUp two times
* Type whole command by hands
* Press up arrow 8 times
* Use reverse search (C-r) supplying 'host-a' as params (It fails when it founds vim host-a.conf)

Revision history for this message
Alexander Kabakow (alexzak) wrote :

Here is Idea #5826: Enable "history-search" with Page-Up/Down in /etc/inputrc by default
http://brainstorm.ubuntu.com/idea/5826/

it is dated as 27 Mar 08

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in readline6 (Ubuntu):
status: New → Confirmed
Revision history for this message
Stanislav German-Evtushenko (giner) wrote :

Yes, I've been waiting this for many years! Would be so great to enable history search by default. This is a must have feature for any linux server and I don't understand why this is not enabled yet.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.