Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: rsync completions
- X-seq: zsh-workers 50487
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Alan Orth <alan.orth@xxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: rsync completions
- Date: Fri, 19 Aug 2022 04:26:30 +0200
- Archived-at: <https://zsh.org/workers/50487>
- In-reply-to: <CAH+w=7bgJvySBm_s53Lw2mkNZbOwa_8k2UVZ2j6yyuQnERYFCg@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAKKdN4UaNAmTHwo7Ut__PcEUCevnBiaWVNGZCoXELn43Q93V1Q@mail.gmail.com> <CAH+w=7bgJvySBm_s53Lw2mkNZbOwa_8k2UVZ2j6yyuQnERYFCg@mail.gmail.com>
On 8/19/22, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Thu, Aug 18, 2022 at 11:08 AM Alan Orth <alan.orth@xxxxxxxxx> wrote:
>>
>> A few months ago the zsh completions for rsync stopped working correctly.
>
> So if this is a problem introduced by those quoting changes in rsync
> 3.2.x, then the rsync completion has to become version-aware, which I
> see is what fish has done.
From what I can tell from
https://download.samba.org/pub/rsync/NEWS#3.2.4 the change is
specifically in 3.2.4 which seems extremely user unfriendly to
introduce such a breaking change in a micro revision.
> I'm not able to tell what ramifications this has when the remote
> version differs significantly from the local version; it doesn't
> appear fish is taking that into account, so perhaps it doesn't matter.
>
> A quick workaround for you, Alan, is likely to be
> alias rsync='rsync --old-args'
>
> There might even be a clever way to insert --old-args into $BUFFER
> only when completion has been invoked, but completion widgets don't
> play well with "ordinary" line edits so I'm not going there just now.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author