You are not logged in.
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
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