We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
command
1 parent f565bf9 commit 1b0ef83Copy full SHA for 1b0ef83
completions/rsync
@@ -102,7 +102,8 @@ _comp_cmd_rsync()
102
fi
103
done
104
if [[ $shell == ssh ]]; then
105
- local rsync_version=$("$1" --version 2>/dev/null | sed -n '1s/.*rsync *version \([0-9.]*\).*/\1/p')
+ local rsync_version=$("$1" --version 2>/dev/null |
106
+ command sed -n '1s/.*rsync *version \([0-9.]*\).*/\1/p')
107
_comp_cmd_rsync__vercomp "$rsync_version" "3.2.4"
108
if (($? == 2)); then
109
_comp_compgen -x scp remote_files
0 commit comments