"show-all-if-ambiguous" produces ^X and not intended output

45 Views Asked by At

I am trying to get "glob-expand-word" to work

pi@raspberrypi:~ $ cat .inputrc
set editing-mode vi
set keymap vi
set show-all-if-ambiguous on
Control-o: "> output"
pi@raspberrypi:~/tmp/test4 $ ls
total 8.0K
drwxr-xr-x 10 pi pi 4.0K Jan 27 08:48 ..
-rw-r--r--  1 pi pi    0 Jan 27 08:48 3_eng
-rw-r--r--  1 pi pi    0 Jan 27 08:48 2_eng
-rw-r--r--  1 pi pi    0 Jan 27 08:48 1_eng
drwxr-xr-x  2 pi pi 4.0K Jan 27 08:48 .
pi@raspberrypi:~/tmp/test4 $ ls *eng^X

When trying to do the ctrlx, * (a two stroke combo) it doesn't work - instead of auto-completing and outputting "ls 1_eng 2_eng 3_eng" it instead appends ^X

What can I try next?

1

There are 1 best solutions below

0
Philippe On

Try to bind ctrl-x :

bind '"\C-x": glob-list-expansions'
# Then -> ls *eng^X