You are not logged in.

#1 2024-02-16 17:33:21

Mantoba
Member
Registered: 2024-01-21
Posts: 17

[SOLVED] Commas added to scp command when using tab completion.

I just noticed something that didn't happen with my last distro.  I but I don't know where to look to stop/change it's behaviour.

When I am typing out an `scp` command, I am able to use tab completion.  But if there is a remote directory with a comma in it, the command gets changed when tab completing.

Example:
The command should be:

$ scp user@here:/Books/Cat.in.the.Hat,.The ./

Tab completion changes it to:

$ scp user@here:/Books/Cat.in.the.Hat\\\,.The ./

The inclusion of '\\\' makes the command fail.

Is there any way to stop the escaping of the comma when tab completing?

Last edited by Mantoba (2024-02-16 17:57:07)

Offline

#2 2024-02-16 17:56:41

Mantoba
Member
Registered: 2024-01-21
Posts: 17

Re: [SOLVED] Commas added to scp command when using tab completion.

Ok, I was able to source the problem.

Removing the comma from line 402 from the file `/usr/share/bash-completion/completions/scp`:

#_scp_path_esc='[][(){}<>"'"'"',:;^&!$=?`\\|[:space:]]'
_scp_path_esc='[][(){}<>"'"'"':;^&!$=?`\\|[:space:]]'

Glad I was able to find this.

Offline

Board footer

Powered by FluxBB