[Bash-completion-commits] ./current r1286: scp metachar escaping fixes: remove duplicate '&' (always there), escape '!' (broken in r1082)
Ville Skyttä
ville.skytta at iki.fi
Thu Jan 22 23:12:32 UTC 2009
------------------------------------------------------------
revno: 1286
committer: Ville Skyttä <ville.skytta at iki.fi>
branch nick: current
timestamp: Fri 2009-01-23 01:12:32 +0200
message:
scp metachar escaping fixes: remove duplicate '&' (always there), escape '!' (broken in r1082)
modified:
contrib/ssh
debian/changelog
-------------- next part --------------
=== modified file 'contrib/ssh'
--- a/contrib/ssh 2009-01-17 09:38:33 +0000
+++ b/contrib/ssh 2009-01-22 23:12:32 +0000
@@ -82,7 +82,7 @@
# add space at end of file names
COMPREPLY=( $( ssh -o 'Batchmode yes' $userhost \
command ls -aF1d "$path*" 2>/dev/null | \
- sed -e "s/[][(){}<>\",:;^&!$&=?\`|\\ ']/\\\\\\\\\\\\&/g" \
+ sed -e "s/[][(){}<>\",:;^&\!$=?\`|\\ ']/\\\\\\\\\\\\&/g" \
-e 's/[*@|=]$//g' -e 's/[^\/]$/& /g' ) )
return 0
fi
@@ -106,7 +106,7 @@
local IFS=$'\t\n'
COMPREPLY=( "${COMPREPLY[@]}" $( command ls -aF1d $cur* \
2>/dev/null | sed \
- -e "s/[][(){}<>\",:;^&!$&=?\`|\\ ']/\\\\&/g" \
+ -e "s/[][(){}<>\",:;^&\!$=?\`|\\ ']/\\\\&/g" \
-e 's/[*@|=]$//g' -e 's/[^\/]$/& /g' ) )
return 0
}
=== modified file 'debian/changelog'
--- a/debian/changelog 2009-01-19 10:53:34 +0000
+++ b/debian/changelog 2009-01-22 23:12:32 +0000
@@ -99,6 +99,7 @@
* Add .mp2 and .vdr to mplayer completion (RHBZ: #444467).
* Add .mkv, .mp2 and .vdr to *xine completion (RHBZ: #444467).
* Added lzop completion.
+ * Fix scp metacharacter escaping.
-- David Paleino <d.paleino at gmail.com> Sat, 17 Jan 2009 19:01:16 +0100
More information about the Bash-completion-commits
mailing list