[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 15bc11769b87b253568b243697533d92a3eddd7d
Ville Skyttä
ville.skytta at iki.fi
Thu Dec 23 20:09:04 UTC 2010
The following commit has been merged in the master branch:
commit 15bc11769b87b253568b243697533d92a3eddd7d
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Thu Dec 23 22:05:55 2010 +0200
Improve scp path escape regex.
The previous one reportedly ended up escaping 't' to '\t' in some
setups (at least bash 3.2.48 on OS X 10.6, but not with 4.1.7 on
Fedora nor 3.2.25 on CentOS), probably due to missing backslash in the
regex. This one removes some spurious escaping and duplicates in the
char class, and should communicate the intent better.
diff --git a/completions/ssh b/completions/ssh
index 6793ddf..cf966ae 100644
--- a/completions/ssh
+++ b/completions/ssh
@@ -246,8 +246,8 @@ _sftp()
}
shopt -u hostcomplete && complete -F _sftp sftp
-# things we want to escape in remote scp paths
-_scp_path_esc="[][(){}<>\",:;^&\!$=?\`|\\ \t']"
+# things we want to backslash escape in scp paths
+_scp_path_esc='[][(){}<>",:;^&!$=?`|\\'"'"'[:space:]]'
# Complete remote files with ssh. If the first arg is -d, complete on dirs
# only. Returns paths escaped with three backslashes.
--
bash-completion
More information about the Bash-completion-commits
mailing list