|
Authored by: Nick_UK on Saturday, April 13 2013 @ 03:59 AM EDT |
Actually it is readline that does it:
From 'man
readline':
SEARCHING
Readline provides commands for searching
through the command history for lines con‐
taining a specified
string. There are two search modes: incremental and non-incre‐
mental.
Incremental searches begin before the user has
finished typing the search string.
As each character of the search string
is typed, readline displays the next entry
from the history matching
the string typed so far. An incremental search requires
only as many
characters as needed to find the desired history entry. To search
backward in the history for a particular string, type C-r. Typing C-s searches
for‐
ward through the history. The characters present in the value
of the isearch-termi‐
nators variable are used to terminate an
incremental search. If that variable has
not been assigned a value the
Escape and C-J characters will terminate an incremen‐
tal search.
C-G will abort an incremental search and restore the original line.
When the search is terminated, the history entry containing the search
string
becomes the current line.
To find other matching
entries in the history list, type C-s or C-r as appropriate.
This will
search backward or forward in the history for the next line matching the
search string typed so far. Any other key sequence bound to a readline command
will
terminate the search and execute that command. For instance, a
newline will termi‐
nate the search and accept the line, thereby
executing the command from the history
list. A movement command will
terminate the search, make the last line found the
current line, and
begin editing.
Non-incremental searches read the entire search
string before starting to search for
matching history lines. The search
string may be typed by the user or be part of
the contents of the
current line.
Nick[ Reply to This | Parent | # ]
|
|
Authored by: lnuss on Saturday, April 13 2013 @ 07:06 AM EDT |
The original Bourne shell didn't have the list, but csh, ksh, bash and some
(most?) others certainly did. In ksh with the proper variable set (I forget the
details now), you could hit ESC then cycle through through the history list with
vi-like commands. There was even a mechanism (again I forget the details) to
allow you to enter vi itself with the command line fully editable with all the
power of the vi editor.
---
Larry N.[ Reply to This | Parent | # ]
|
|
Authored by: lnuss on Saturday, April 13 2013 @ 09:04 AM EDT |
"...My Amiga has the same feature. I still have it if they want one to
demonstrate prior art in court, again."
I still have a 2000 and a 4000, as well as numerous Fish disks, including lots
of Gnu stuff for the Amiga -- ksh, csh and others were included on those. They
date back into the '80s and early '90s.
---
Larry N.[ Reply to This | Parent | # ]
|
|
|
|
|