[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bind builtin does not run readline commands
From: |
fargred |
Subject: |
Bind builtin does not run readline commands |
Date: |
Tue, 27 May 2014 09:19:18 +0400 |
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'
-DNON_INTERACTIVE_LOGIN_SHELLS -DSSH_SOURCE_BASHRC -march=corei7-avx -O2 -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,
bind shell-expand-line
Doesnât seem to be working, as well as alias-expand-line or
history-and-alias-expand-line. Strange bug is, after executing the command
above the lowercase âlâ cannot be typed into terminal (That doesnât
affect uppercase âlâ or letters on the other layout). No, I do not have any
aliases like âlâ, it stops working even if you
start a new shell with an empty environment
env -i bash --noprofile
and then run
unalias -a
in it.
Repeat-By:
Add the following code to the ~/.bashrc:
alias expand_me='Alias was expanded!'
testing_bind_builtin() {
shopt -s expand_aliases # to be sure
bind shell-expand-line
}
[ -v TESTING_BIND ] && bind -x '"\C-m":"testing_bind_builtin"'
Now call an instance of your favourite terminal emulator to test itâ¦
$ export TESTING_BIND=t; <your favourite terminal emulator>
â¦and type the alias name (âexpand_meâ) followed by Enter key or
C-m. Alias should be expanded, but it doesnât.
- Bind builtin does not run readline commands,
fargred <=