[Bug 692554] Re: Autocomplete fails on some filenames

l0b0 victor.engmark at gmail.com
Sun Aug 19 13:37:47 UTC 2012


It works for some operations, but not for `cd`. Try pressing TAB at the
[tab] marked places to verify:

$ touch -- $'--$`!*@\a\b\E\f\r\t\v\\\'"\360\240\202\211 \n' # my test string
$ touch -- --$[tab]
Autocompletes to the correct file.
$ rm -- --$[tab]
Autocompletes to the correct file.
$ mkdir -- $'--$`!*@\a\b\E\f\r\t\v\\\'"\360\240\202\211 \n' # test 
$ cd -- --$[tab]
Fails:
$ cd -- --\$\`\!\*@^G^H^[^L^M\  ^K\\\'\"𠂉\ 
bash: cd: --$`!*
	
        \'"𠂉 : No such file or directory
$ rmdir -- --$[tab]
Autocompletes to the correct file.

** Changed in: bash-completion (Ubuntu)
       Status: Incomplete => New

-- 
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/692554

Title:
  Autocomplete fails on some filenames

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

Bug description:
  Binary package hint: bash-completion

  After creating a directory or file with the standard escape sequences
  available in the Bash $'' string construct, filename autocompletion
  fails. For example:

  $ mkdir -- $'--$`\! *@ \a\b\e\E\f\r\t\v\\\"\' \n'
  $ rm -- \-\-
  [press TAB]
  $ rm -- \-\-bash: [: --$`\! *@
  : binary operator expected
  --\$\`\\\!\ \*@\ ^G^H^[^[^L^M\ ^K\\\"\'\  

  The good news is, if autocomplete can handle this filename, it should
  be able to handle _any_ *nix filename, that is, anything that doesn't
  contain a null character or a slash.

  ProblemType: Bug
  DistroRelease: Ubuntu 10.04
  Package: bash-completion 1:1.1-3ubuntu2
  ProcVersionSignature: Ubuntu 2.6.32-26.48-generic 2.6.32.24+drm33.11
  Uname: Linux 2.6.32-26-generic i686
  Architecture: i386
  Date: Mon Dec 20 14:05:33 2010
  InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
  PackageArchitecture: all
  ProcEnviron:
   LC_PAPER=en_GB.UTF-8
   SHELL=/bin/bash
   LANG=en_US.utf8
  SourcePackage: bash-completion

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




More information about the foundations-bugs mailing list