We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d2f59bb + 34f7d0c commit 9b8b309Copy full SHA for 9b8b309
completions/ssh
@@ -469,7 +469,7 @@ _comp_cmd_scp__path_esc='[][(){}<>"'"'"',:;^&!$=?`\\|[:space:]]'
469
_comp_xfunc_scp_compgen_remote_files()
470
{
471
# remove backslash escape from the first colon
472
- cur=${cur/\\:/:}
+ local cur=${cur/\\:/:}
473
474
local _userhost=${cur%%?(\\):*}
475
local _path=${cur#*:}
@@ -499,7 +499,7 @@ _comp_xfunc_scp_compgen_remote_files()
499
command sed -e 's/'"$_comp_cmd_scp__path_esc"'/\\\\\\&/g' -e 's/[*@|=]$//g' \
500
-e 's/[^\/]$/& /g')
501
fi
502
- _comp_compgen_split -l -- "$_files"
+ _comp_compgen -R split -l -- "$_files"
503
}
504
505
# @deprecated 2.12 use `_comp_compgen -ax ssh remote_files` instead
0 commit comments