Skip to content

rsync ssh remote paths are double-escaped (incorrect since rsync 3.2.4) #848

Closed
@stefanor

Description

@stefanor

Describe the bug

In 3.2.4 rsync changed the default way that arguments were passed to a remote ssh host, to no longer require double-escaping.

The bash-completion still double-escapes.

To reproduce

  1. Create /tmp/foo bar on a remote machine (named remote)
  2. Type rsync remote:/tmp/foo
  3. Press tab.
  4. Note that this completes to rsync remote:/tmp/foo\\\ bar, which is incorrect.

Expected behaviour

The remote path should only be escaped once, not twice (unless the --old-args argument is passed to rsync (>= 3.2.4)

Versions (please complete the following information)

  • Operating system name/distribution and version: Debian testing
  • bash version, echo "$BASH_VERSION": 5.2.2(1)-release
  • bash-completion version, (IFS=.; echo "${BASH_COMPLETION_VERSINFO[*]}"): 2.11 (Debian: 1:2.11-6)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions