[Bash-completion-devel] Bug#686866: ssh: files(!) with ":" must be completed to start with "./" when using scp/etc.

Christoph Anton Mitterer calestyo at scientia.net
Thu Sep 6 19:29:55 UTC 2012


Package: bash-completion
Version: 1:2.0-1
Severity: normal


Hi.

When using files that contain a ":" with scp/etc. they will always be inter-
preted as hosts, unless they start with "./".
E.g:
$ cp Screenshot\ from\ 2012-09-06\ 21\:22\:57.png 192.168.0.100:
ssh: Could not resolve hostname Screenshot from 2012-09-06 21: Name or service not known
$ scp ./Screenshot\ from\ 2012-09-06\ 21\:22\:57.png 192.168.0.100:d
Screenshot from 2012-09-06 21:22:57.png          100%    0     0.0KB/s   00:00
$

So such files should automatically becompleted to start with "./".


Chris.



More information about the Bash-completion-devel mailing list