Auto-completing filenames (by pressing TAB
after first characters of the filenames have been written) is case-sensitive both on my Ubuntu 13.04 box and on my Debian Squeeze box, when I use scp
.
I have the following line in my .inputrc
:
set completion-ignore-case on
and the case-insensitive autocompletion works fine on other shell programs.
Examples
<TAB>
here means pressing the TAB
key.
Correct behaviour
Currently, case-insensitive autocompletion works correctly on other shell programs, such as cp
here:
$ cp my<TAB>
which yields, as expected:
$ cp MyFile
Incorrect behaviour
When using scp
, the case-insensitive autocompletion doesn't work. On this line, nothing happens:
$ scp my<TAB>
And I have to revert to using the tedious case-sensitive autocompletion, like here:
$ scp My<TAB>
which yields, as expected:
$ scp MyFile
Possible workaround
Since this is a "recent" issue (i.e. this has been happening only for a few years or so), my guess is that this has something to do with the way some programs have autocompletable switches and other arguments, starting from some version of bash
, but I'm unable to find out how to fix this specific problem.