"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
cmd: Fix autocompletion of remote paths with spaces - fixes #3047
Danil Semelenova0d2ab5b4f80
diff --git a/cmd/help.go b/cmd/help.goindex 16f001e1d..bb5d83cdf 100644--- a/cmd/help.go+++ b/cmd/help.go@@ -57,7 +57,7 @@ __rclone_custom_func() {elselocal path=${cur#*:}if [[ $path == */* ]]; then- local prefix=${path%/*}+ local prefix=$(eval printf '%s' "${path%/*}")elselocal prefix=fi@@ -66,6 +66,7 @@ __rclone_custom_func() {local reply=${prefix:+$prefix/}$line[[ $reply != $path* ]] || COMPREPLY+=("$reply")done < <(rclone lsf "${cur%%:*}:$prefix" 2>/dev/null)+ [[ ! ${COMPREPLY[@]} ]] || compopt -o filenamesfi[[ ! ${COMPREPLY[@]} ]] || compopt -o nospacefi