[Bug 692554] Re: Autocomplete fails on embedded newlines

Peter Cordes peter at cordes.ca
Sun Nov 30 07:48:57 UTC 2014


This is upstream
https://alioth.debian.org/tracker/index.php?func=detail&aid=311399&group_id=100114&atid=413095

As the comments there show, fixing this is hard, and means you can't
even use compgen.  (compgen uses newline as its output record
separator.)


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

** Bug watch added: alioth.debian.org/ #311399
   http://alioth.debian.org/support/tracker.php?aid=311399

-- 
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 embedded newlines

Status in bash-completion package in Ubuntu:
  Confirmed

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