Bash autocomplete ignores anything after a space in dir names

What is the problem you are having with rclone?

Bash autocomplete ignores anything after a space in directory names. You can see this with a double-tab or by typing a partial name and hitting tab. Autocomplete will stop before the space leaving an incomplete name.

So, for example: 'Long directory name' would show as 'Long' on a double-tab and typing 'Lo' and hitting tab would complete to 'Long'.

If I restore an older version of the rclone file from /etc/bash_completion.d on another box it works as expected. The newer installed file says v2 at the top, the older restored one just says 'bash completion for rclone'. The older version was installed by an older (but unknown) version of rclone. Kernel and Bash versions are the same (as is rclone now).

Similarly if I run 'sudo rclone complete bash' on the box that was working I then get the incorrect behaviour until I restore the old /etc/bash_complete.d/rclone file.

EDIT: This also happens in Fedora. Running 'rclone complete bash' with rclone v1.64 and it works as expected. Installing rclone v1.67 and re-running causes the problem described above.

Bash version on RHEL is 5.18(1) and on Fedora is 5.2.26(1).

Run the command 'rclone version' and share the full output of the command.

rclone v1.67.0

  • os/version: redhat 9.4 (64 bit)
  • os/kernel: 5.14.0-427.28.1.el9_4.x86_64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.22.4
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone lsd GD-Enc: (and then Tab)

The rclone config contents with secrets removed.

[GD]
type = drive
client_id = XX
client_secret = XX
token = {XX}
root_folder_id = XX

[GD-Enc]
type = crypt
remote = GD:/ZZZ
filename_encryption = standard
password = XX
password2 = XX

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.