bash-completion/bash-completion-20060301-scp-apos-217178.patch
Ville Skyttä 1a7a342ecd - Fix scp with single quotes (#217178).
- Borrow fix for bzip2 w/spaces, and apropos and whatis support from
    Debian.
2007-02-27 23:38:43 +00:00

19 lines
650 B
Diff

--- bash_completion~ 2006-03-01 18:20:18.000000000 +0200
+++ bash_completion 2006-12-26 14:01:59.000000000 +0200
@@ -2589,6 +2589,7 @@
COMPREPLY=( $( ssh -o 'Batchmode yes' $userhost \
command ls -aF1d "$path*" 2>/dev/null | \
sed -e 's/[][(){}<>",:;^&!$&=?`|\ ]/\\\\\\&/g' \
+ -e "s/'/\\\\\\\\\\\\&/g" \
-e 's/[*@|=]$//g' -e 's/[^\/]$/& /g' ) )
return 0
fi
@@ -2597,6 +2598,7 @@
COMPREPLY=( ${COMPREPLY[@]} $( command ls -aF1d $cur* \
2>/dev/null | sed \
-e 's/[][(){}<>",:;^&!$&=?`|\ ]/\\&/g' \
+ -e "s/'/\\\\&/g" \
-e 's/[*@|=]$//g' -e 's/[^\/]$/& /g' ) )
return 0
}