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 28e19a2 commit a4fee73Copy full SHA for a4fee73
completions/ssh
@@ -535,15 +535,15 @@ _scp_remote_files()
535
# @since 2.12
536
_comp_xfunc_scp_compgen_local_files()
537
{
538
- local _dirsonly=""
+ local _dirs_only=""
539
if [[ ${1-} == -d ]]; then
540
- _dirsonly=set
+ _dirs_only=set
541
shift
542
fi
543
544
local files
545
_comp_expand_glob files '"$cur"*' || return 0
546
- if [[ $_dirsonly ]]; then
+ if [[ $_dirs_only ]]; then
547
_comp_compgen -RU files split -l ${1:+-P "$1"} -- "$(
548
command ls -aF1dL "${files[@]}" 2>/dev/null |
549
command sed -e "s/$_comp_cmd_scp__path_esc/\\\\&/g" \
0 commit comments