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.
1 parent 85f66d2 commit 687068cCopy full SHA for 687068c
completions/ssh
@@ -597,9 +597,9 @@ _scp_remote_files()
597
# @since 2.12
598
_comp_xfunc_scp_compgen_local_files()
599
{
600
- local _dirsonly=""
+ local _dirs_only=""
601
if [[ ${1-} == -d ]]; then
602
- _dirsonly=set
+ _dirs_only=set
603
shift
604
fi
605
@@ -611,7 +611,7 @@ _comp_xfunc_scp_compgen_local_files()
611
_comp_expand_glob files '"$cur_val"*' || return 0
612
_comp_compgen -RU files split -l ${1:+-P "$1"} -- "$(
613
command ls -aF1dL "${files[@]}" 2>/dev/null |
614
- _comp_cmd_scp__escape_path ${_dirsonly:+'-d'}
+ _comp_cmd_scp__escape_path ${_dirs_only:+'-d'}
615
)"
616
}
617
0 commit comments