Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: bug report about zsh



> 2018/08/21 2:30, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> 
> On Mon, Aug 20, 2018, 10:21 AM Jun T. <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
> 
>> Do we need to fix this? If so, then how? Can we just remove
>> the ':' from the pattern [:@] ?
>> 
> The colon is there so you can specify a port number, I think.

User *can* specify a port number but it is just ignored.

In _user_at_host, _combination is called with style 'users-hosts', not
'users-hosts-ports'. For example,

% zstyle ':completion:*' users-hosts 'foo@xxxxxxxx:123'

% sshfs f<TAB><TAB>
% finger f<TAB><TAB>
% dsh -m f<TAB><TAB>

all of these complete to foo@xxxxxxxx and the 123 will never be offered.
So I wonder why : is in the pattern [:@]. Is it just to ignore the
port number (if it exists)?



Messages sorted by: Reverse Date, Date, Thread, Author