Documented history-substr-search-*, but only history-substring-search-* works

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Documented history-substr-search-*, but only history-substring-search-* works

Clemens Anhuth
Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu'
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL
-DHAVE_CONFIG_H   -I.  -I../. -I.././include -I.././lib  -Wdate-time
-D_FORTIFY_SOURCE=2 -g -O2 -fdebug-prefix-map=/build/bash-TPGSJ6/bash-4.4=.
-fstack-protector-strong -Wformat -Werror=format-security -Wall -no-pie
-Wno-parentheses -Wno-format-security
uname output: Linux schenefeld 4.10.0-28-generic #32-Ubuntu SMP Fri Jun 30
05:32:18 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 4.4
Patch Level: 7
Release Status: release

Description:
        https://www.gnu.org/software/bash/manual/html_node/Commands-For-History.html
        mentions...

         history-substr-search-backward
         history-substr-search-forward

        ...but only...

          history-substring-search-backward
          history-substring-search-forward

        ...seem to work.

Repeat-By:
        Add to .inputrc:

        "\e[A": history-substr-search-backward
        "\e[B": history-substr-search-forward

        Start new console/shell.

        Type a substring of a previously executed command.
        Press Up arrow key.

Fix:
        Change documentation to use...

         history-substring-search-backward
         history-substring-search-forward

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Documented history-substr-search-*, but only history-substring-search-* works

Chet Ramey
On 8/2/17 11:03 AM, Clemens Anhuth wrote:

> Fix:
>     Change documentation to use...
>
>      history-substring-search-backward
>      history-substring-search-forward

Thanks for the report.  This was fixed in the devel branch last November.

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

Loading...