On 4/12/14, 3:27 PM, Дилян Палаузов wrote:

> So, the difference between history-search-forward and
> history-substr-search-forward is that the first searches for a pattern in
> the beginning of a string, while the latter searches for a pattern anywhere
> in the string. Then we have:
> 
> `non-incremental-forward-search-history (M-n)'
>      Search forward starting at the current line and moving `down'
>      through the the history as necessary using a non-incremental search
>      for a string supplied by the user.
> 
> 
> Please clarify, if this command searches for history events starting with
> the provided string, or containing it in the middle of the event.

In general, if the description does not specify, the search is for a string
appearing anywhere in a history entry.

> 
> Likewise for non-incremental-reverse-search-history,

The same.

> history-search-backward and history-substr-search-backward.

The `substr' in the name of the latter should infer something about the
difference between the two, but the descriptions in the readline manual
already describe whether the search must match at the beginning of a
history line.

> 
> If my history has the four events
> a
> ab
> abc
> abcd
> 
> and I search with non-incremental-reverse-search-history for "a", I find
> abcd, however I want to jump iteratively to "ab".  What shall do, so that
> readline-history finds the intermediate "abc" and then the searched "ab"?

A non-incremental reverse search for `ab'?  Since non-incremental searches
require you to specify the search string before you search, you will have
to cancel or end the current search and start a new one.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    [email protected]    http://cnswww.cns.cwru.edu/~chet/

_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline

Reply via email to