From 29684e7c81ae85ce29f58a707b6339b853565dc6 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 16 Apr 2009 10:00:26 +0000 Subject: 26829: Alexey I. Froloff: _rsync miscounts fields --- Completion/Unix/Command/_rsync | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Completion/Unix/Command/_rsync') diff --git a/Completion/Unix/Command/_rsync b/Completion/Unix/Command/_rsync index 34d4260b3..c26c05f14 100644 --- a/Completion/Unix/Command/_rsync +++ b/Completion/Unix/Command/_rsync @@ -31,11 +31,14 @@ if compset -P '*::*/' || compset -P 'rsync://*/*/'; then remdispf=(${remfiles:#d*}) remdispd=(${(M)remfiles:#d*}) + # $remdisp[fd] format: + # attrs size date time name + _wanted files expl 'remote file or directory' \ - compadd -d remdispf ${remdispf##* } + compadd -d remdispf ${${${${remdispf##[^ ]## ##}##[^ ]## ##}##[^ ]## ##}##[^ ]## ##} _wanted files expl 'remote file or directory' \ - compadd -S/ -d remdispd ${remdispd##* } + compadd -S/ -d remdispd ${${${${remdispd##[^ ]## ##}##[^ ]## ##}##[^ ]## ##}##[^ ]## ##} elif compset -P 1 '*::' || compset -P 1 'rsync://*/'; then -- cgit 1.4.1