zsh-users
 help / color / mirror / code / Atom feed
From: "Mathieu" <math.clavel+zsh@protonmail.com>
To: zsh-users@zsh.org
Subject: rsync completion not working for server files when using double quotes
Date: Tue, 7 Sep 2021 08:41:58 +0000	[thread overview]
Message-ID: <sympa.1631002395.31566.639@zsh.org> (raw)

Hello,

I hope I’m at the right place to submit that problem.

I use zsh completion to navigate through rsync server directory hierarchy.
I’ve just discovered brace expansion {start..end} and for it to work, I need
to double quotes the server path:
noglob rsync -rlP "server:folder/file{01..03}" .
will download the files file01, file02, and file03 from folder.

My problem is: completion (=tab=>) is working for folders but not files (if
there are no folders) when using double quotes:
noglob rsync -rlP "server:fo =tab=> noglob rsync -rlP "server:folder/
but
noglob rsync -rlP "server:folder/fi =tab=>
will not complete the filename or display a list when using tab twice.

I first opened a question on stackoverflow about it:
https://stackoverflow.com/questions/69073426/rsync-server-autocompletion-not-working-for-files-when-using-double-quotes-on-zs

If someone can help me, maybe just by providing a workaround.
Using the completion before adding the quotes could work but is tedious when
some names need escaping:
noglob rsync -rlP server:folder\\\ with\\\ spaces/file{01..03} .
noglob rsync -rlP "server:folder\\ with\\ spaces/file{01..03}" .

Looking forward to reading you,
Regards,

Mathieu

                 reply	other threads:[~2021-09-07  8:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sympa.1631002395.31566.639@zsh.org \
    --to=math.clavel+zsh@protonmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).