Bash autocompletion outputs spurious text when there's no config file

What is the problem you are having with rclone?

Bash completion outputs spurious text when there's no config file.

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

rclone v1.53.3-DEV
- os/arch: linux/amd64
- go version: go1.19

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

N/A

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

rclone ls <TAB>

The rclone config contents with secrets removed.

N/A, this happens when there's no config file.

A log from the command with the -vv flag

$ rclone ls 2022/09/10 23:20:49 NOTICE: Config file "/home/dseomn/.config/rclone/rclone.conf" not found - using defaults

That's an ancient version. You should update and retest and share the output.

That's the latest version available in my distro (Debian testing/unstable), and this bug isn't annoying enough to be worth the effort of installing something from anywhere else. It looks like that log line is still there, but I don't know if that line is reached from the latest completion code.

It's not recommended to use any repo as they are all generally very out of date.

Install (rclone.org)

I think this bug is very likely still present.

One of the things the bash completion does is run rclone listremotes which gives that NOTICE if no config file is found.

I suspect changing anywhere where rclone is run to add the -q flag in here would fix the problem

If you wanted to give it a try.

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