[Bug 883268] Re: bash ls tab completion broken for files/dirs with spaces in name

Rachel Greenham 883268 at bugs.launchpad.net
Tue Mar 4 20:33:56 UTC 2014


I know I'm waking up a very old bug here, but I just hit it, on
*trusty*. There was no problem in saucy.

It does seem to match what the original reporter was saying: that it
fails to autocomplete *files* if the directory path has spaces in it. It
will autocomplete subdirectories of directories with spaces in their
names, but not when it gets down to the actual files.

Checked out the workaround in comment #3, but as far as I can make out,
that fix is already in: line 1587 of (now) /usr/share/bash-
completion/bash_completion is:

    compopt -o filenames

Of course the offending line may not be the exact number, but it *looks*
like the same thing. So it looks like it may be same symptom, different
cause this time.

NB: This is affecting ls and various other random commands including
personal helper scripts of my own, so I don't think it's completion
rules for specific commands getting in the way.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash-completion in Ubuntu.
https://bugs.launchpad.net/bugs/883268

Title:
  bash ls tab completion broken for files/dirs with spaces in name

Status in “bash-completion” package in Ubuntu:
  Confirmed

Bug description:
  Running updated ubuntu 11.10, tab completion fails to escape spaces in
  filenames for some commands.

  To repeat:
  mkdir "abc def"
  touch "abc def"/xyz
  ls ab<TAB><ENTER>
  Expected: 
  xyz
  Observed: 
  ls: cannot access abc: No such file or directory
  ls: cannot access def: No such file or directory

  Also affects tab completion for 'touch', but not for 'echo' or when
  looking for commands.

  This worked fine in ubuntu 11.04.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/883268/+subscriptions



More information about the foundations-bugs mailing list