[Bug 533985] Re: Bash completion whitelisting returns no results when it could return some that do not match

Launchpad Bug Tracker 533985 at bugs.launchpad.net
Thu Nov 3 22:18:29 UTC 2011


** Branch linked: lp:debian/experimental/bash-completion

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

Title:
  Bash completion whitelisting returns no results when it could return
  some that do not match

Status in “bash-completion” package in Ubuntu:
  Fix Released
Status in “bash-completion” package in Debian:
  Confirmed

Bug description:
  Binary package hint: bash-completion

  When attempting to write a command line to decompress a .tar.xz file,
  tab completion fails:

  mbt at fennel:~$ ls -l *.tar.xz
  -rw-r--r-- 1 mbt mbt 4467540 2010-03-07 15:11 coreutils-8.4.tar.xz
  mbt at fennel:~$ tar xf core

  Pressing TAB multiple times does nothing.

  I think that completion should not be a whitelist thing; that is,
  there should be some way to override the shell's notion of what you
  want it to complete.  For example, if I were to do:

  mbt at fennel:~$ ls -l *.tar.xz
  -rw-r--r-- 1 mbt mbt 4467540 2010-03-07 15:11 coreutils-8.4.tar.xz
  mbt at fennel:~$ tar xf ./core

  … and press TAB multiple times, I still get nothing even though it
  should be perfectly clear to the shell that I really _do_ want it to
  autocomplete on the only possible file in the directory that matches
  the prefix.  This is also a problem when attempting to autocomplete
  names for .zip files that have been renamed to something else entirely
  (such as is the case for MozBackup’s renamed ZIP files, which is
  .pcv).

  ProblemType: Bug
  Architecture: amd64
  Date: Sun Mar  7 15:12:04 2010
  DistroRelease: Ubuntu 10.04
  InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha amd64 (20100224.1)
  Package: bash-completion 1:1.1-3
  PackageArchitecture: all
  ProcEnviron:
   LANG=en_US.utf8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 2.6.32-15.22-generic
  SourcePackage: bash-completion
  Uname: Linux 2.6.32-15-generic x86_64

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




More information about the foundations-bugs mailing list