retitle 740971 bash: completion fails on file names that contain spaces or 
other special characters
thanks

On Mar 08, Filipus Klutiero wrote:
> To clarify, it's not that completion is completely broken, it just fails when 
> several files share a start which contains at least one space.

Completion already fails on a single file name which contains a
space. Try:

  $ mkdir /tmp/test && cd /tmp/test && touch 'a a'
  $ ls <TAB><TAB>

Nothing happens ..

Completion also fails for file names which contain other special
characters which bash would escape with a backslash on
completion. Try the above example with file names like "a("
or "a,".

You can use single quotes to work around this bug:

  $ ls '<TAB><TAB>

In the example above this works as expected. Strangely it does
not work when you use double quotes instead.

Uwe


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to