[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bind builtin does not run readline commands

From: Pierre Gaston
Subject: Re: Bind builtin does not run readline commands
Date: Tue, 27 May 2014 16:30:17 +0300

On Tue, May 27, 2014 at 8:19 AM, <address@hidden> wrote:

> Configuration Information [Automatically generated, do not change]:
> Machine: x86_64
> OS: linux-gnu
> Compiler: x86_64-pc-linux-gnu-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./include -I. -I./include -I./lib
> -DDEFAULT_PATH_VALUE='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
> -DSTANDARD_UTILS_PATH='/bin:/usr/bin:/sbin:/usr/sbin'
> -DSYS_BASHRC='/etc/bash/bashrc' -DSYS_BASH_LOGOUT='/etc/bash/bash_logout'
> -pipe -fomit-frame-pointer         --param l1-cache-size=32         --param
> l1-cache-line-size=64         --param l2-cache-size=6144
> uname output: Linux home 3.13.10-geek-i5 #2 SMP PREEMPT Wed May 21
> 23:26:16 MSK 2014 x86_64 Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
> GenuineIntel GNU/Linux
> Machine Type: x86_64-pc-linux-gnu
> Bash Version: 4.2
> Patch Level: 45
> Release Status: release
> Description:
>         The syntax of the 'bind' builtin command suggests that any
> readline command may be executed just by passing command name to the 'bind'
> in accordance with 'man bash'. However,

it looks like a man page bug, instead of

bind [-m keymap] keyseq:function-name
bind readline-command

"help bind" shows:

bind: bind [-lpvsPVS] [-m keymap] [-f filename] [-q name] [-u  name] [-r
keyseq] [-x keyseq:shell-command] [keyseq:readline-function or

and it's pretty clear from the description that bind can only bind keys and
set readline variables

reply via email to

[Prev in Thread] Current Thread [Next in Thread]