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

Re: bash completion and spaces



On Mon, 26 Apr 2021 davidson wrote:

Two corrections to previous message.

[dd]

% Proposal C

In that case, you could get all but the last argument completed like
so:

$ complete -A hostname -P '-h ' -S ' -s'

1. At the end of the line above, the command name is missing.

 $ complete -A hostname -P '-h ' -S ' -s' app3

[dd]

% Proposal D

$ cat ~/.inputrc # a literal Shift-TAB is inside the double quotes
"   ": menu-complete

2. The '^[' above is an artifact of...something. In my ~/.inputrc
there is nothing inside those double quotes except for a literal
Shift-TAB (encoded as ASCII ESC character 0x1b followed by TAB 0x09).

--
Ce qui est important est rarement urgent
et ce qui est urgent est rarement important
-- Dwight David Eisenhower


Reply to: