summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2009-02-06 23:22:29 +0200
committerVille Skyttä <ville.skytta@iki.fi>2009-02-06 23:22:29 +0200
commit2595b32439d58f6ba16b40ada4ab895a84207f16 (patch)
treee1981c0cad73be9d13960deb413e51acfb0fba7d
parent9b596cbb6b810104c5716c67d3c6477497e22eab (diff)
downloadbash-completion-2595b32439d58f6ba16b40ada4ab895a84207f16.tar.gz
Add comments about local file completion of _scp.
-rw-r--r--contrib/ssh2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/ssh b/contrib/ssh
index 09e3ae76..85325aa2 100644
--- a/contrib/ssh
+++ b/contrib/ssh
@@ -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 \