Add comments about local file completion of _scp.

This commit is contained in:
Ville Skyttä 2009-02-06 23:22:29 +02:00
parent 9b596cbb6b
commit 2595b32439

View File

@ -104,6 +104,8 @@ _scp()
[[ "$cur" == */* ]] || _known_hosts -c -a "$optconfigfile"
# This approach is used instead of _filedir to get a space appended
# after local file/dir completions, and $nospace retained for others.
local IFS=$'\t\n'
COMPREPLY=( "${COMPREPLY[@]}" $( command ls -aF1d $cur* \
2>/dev/null | sed \