zsh-users
 help / color / mirror / Atom feed
* rsync completion not working for server files when using double quotes
@ 2021-09-07  8:41 Mathieu
  0 siblings, 0 replies; only message in thread
From: Mathieu @ 2021-09-07  8:41 UTC (permalink / raw)
  To: zsh-users

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-07  8:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-07  8:41 rsync completion not working for server files when using double quotes Mathieu

zsh-users

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.vuxu.org/zsh-users

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 zsh-users zsh-users/ https://inbox.vuxu.org/zsh-users \
		zsh-users@zsh.org
	public-inbox-index zsh-users

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.users


code repositories for the project(s) associated with this inbox:

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

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git