Control: found -1 5.2.21-2
Control: tags -1 upstream
X-Debbugs-CC: bug-bash@gnu.org
On Sat, 23 Apr 2005 15:20:19 -0700 Frederik Eaton <frede...@ofb.net> wrote:
Bash executable completion doesn't work if there is a space in the
executable path.
This issue is still partially present in current version of Bash.
The most basic case has been fixed:
$ touch "cmd with spaces"
$ chmod +x "cmd with spaces"
$ PATH=$PWD:$PATH
$ cmd<TAB>
$ cmd\ with\ spaces
However there seems to be a linger issue that appears when multiple
commands with spaces match a given prefix:
$ touch "myfoo "{a,b,c}" command"
$ chmod +x "myfoo "{a,b,c}" command"
$ ls myfo*
'myfoo a command' 'myfoo b command' 'myfoo c command'
$ PATH=$PWD:$PATH
$ myf<TAB>
$ myfoo\ <TAB><TAB>
$ myfoo\
No suggestions are shown after the double tab. Instead, double tabbing
should show all available commands matching the "myfoo " prefix:
$ myfoo\ <TAB><TAB>
myfoo a command myfoo b command myfoo c command
Regards,
--
Gioele Barabucci