[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: glob-expand-word and vi-command mode
From: |
Chet Ramey |
Subject: |
Re: glob-expand-word and vi-command mode |
Date: |
Mon, 5 Feb 2024 09:14:15 -0500 |
User-agent: |
Mozilla Thunderbird |
On 2/3/24 6:23 PM, Mike Jonkmans wrote:
esc * is bound to insert-completions
It's bound to vi-complete, which bash replaces with something that does
the pathname expansion that POSIX requires.
How can I find this out?
You can assume that the bash vi mode behaves as POSIX specifies:
https://pubs.opengroup.org/onlinepubs/9699919799/utilities/sh.html#tag_20_117_13_03
which has features that are more shell-specific than basic readline editing
(e.g., the pathname expansion that `*' performs in vi command mode).
INPUTRC=/dev/null bash --norc --noprofile
set -o vi
bind -m vi-insert -p
bind -m vi-command -p
Both show no bindings for "*".
(`man 3 readline' mentions "*" on vi-complete in command mode)
Good point. I added a bindable name for bash's replacement.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
OpenPGP_signature.asc
Description: OpenPGP digital signature
Re: glob-expand-word and vi-command mode, Chet Ramey, 2024/02/03