decoration decoration
Stories

GROKLAW
When you want to know more...
decoration
For layout only
Home
Archives
Site Map
Search
About Groklaw
Awards
Legal Research
Timelines
ApplevSamsung
ApplevSamsung p.2
ArchiveExplorer
Autozone
Bilski
Cases
Cast: Lawyers
Comes v. MS
Contracts/Documents
Courts
DRM
Gordon v MS
GPL
Grokdoc
HTML How To
IPI v RH
IV v. Google
Legal Docs
Lodsys
MS Litigations
MSvB&N
News Picks
Novell v. MS
Novell-MS Deal
ODF/OOXML
OOXML Appeals
OraclevGoogle
Patents
ProjectMonterey
Psystar
Quote Database
Red Hat v SCO
Salus Book
SCEA v Hotz
SCO Appeals
SCO Bankruptcy
SCO Financials
SCO Overview
SCO v IBM
SCO v Novell
SCO:Soup2Nuts
SCOsource
Sean Daly
Software Patents
Switch to Linux
Transcripts
Unix Books

Gear

Groklaw Gear

Click here to send an email to the editor of this weblog.


You won't find me on Facebook


Donate

Donate Paypal


No Legal Advice

The information on Groklaw is not intended to constitute legal advice. While Mark is a lawyer and he has asked other lawyers and law students to contribute articles, all of these articles are offered to help educate, not to provide specific legal advice. They are not your lawyers.

Here's Groklaw's comments policy.


What's New

STORIES
No new stories

COMMENTS last 48 hrs
No new comments


Sponsors

Hosting:
hosted by ibiblio

On servers donated to ibiblio by AMD.

Webmaster
BASH shell history list | 265 comments | Create New Account
Comments belong to whoever posts them. Please notify us of inappropriate comments.
BASH shell history list - readline
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 | # ]

BASH shell history list
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 | # ]

BASH shell history list
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 | # ]

Groklaw © Copyright 2003-2013 Pamela Jones.
All trademarks and copyrights on this page are owned by their respective owners.
Comments are owned by the individual posters.

PJ's articles are licensed under a Creative Commons License. ( Details )