[Bug 461157] Re: bash-completion fails on files that start with *

jaykaycgn 461157 at bugs.launchpad.net
Fri Apr 11 20:30:36 UTC 2014


Sorry to bump that old thing, but apparently this is still happing in my
12.04 install?!

# vim /var/log/-bash: [: too many arguments
-bash: [: too many arguments

that happens only in my log directory where is this file:

-rw-r--r--  1 root   root            0 Apr 25  2012 mail.*

after deleting that file, the above command works like normal.

thats the version i'm using:
# dpkg -s bash-completion 
Package: bash-completion
Status: install ok installed
Multi-Arch: foreign
Priority: standard
Section: shells
Installed-Size: 640
Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
Architecture: all
Version: 1:1.3-1ubuntu8.1
Replaces: bash, cryptsetup (<< 2:1.1.2-2), xen-tools (<= 4.1-1)
Depends: bash (>= 3.2)
Pre-Depends: dpkg (>= 1.15.7.2)
Conflicts: xen-tools (<= 4.1-1)
Conffiles:
 /etc/profile.d/bash_completion.sh c9f21609bdb02142c934d46b476210b7

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

Title:
  bash-completion fails on files that start with *

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

Bug description:
  Binary package hint: bash-completion

  Description:	Ubuntu 9.10
  Release:	9.10

  $ apt-cache policy bash-completion
  bash-completion:
    Installed: 1:1.0-3ubuntu2
    Candidate: 1:1.0-3ubuntu2
    Version table:
   *** 1:1.0-3ubuntu2 0
          500 http://ch.archive.ubuntu.com karmic/main Packages
          100 /var/lib/dpkg/status

  
  I created a file called *.jpg:
  lbedford at stierenried:~/Pictures/Backgrounds$ touch \*.jpg

  I try to tab complete it with ls:
  lbedford at stierenried:~/Pictures/Backgrounds$ ls \*bash: [: too many arguments
  .jpbash: [: too many arguments
  bash: [: too many arguments

  bash never actually completes the filename.

  Not being sure if it was bash or bash-completion at fault, I purged bash-completion from
  my machine, and with a new bash, it worked correctly, so it appears to be
  in bash-completion somewhere.

  L.

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



More information about the foundations-bugs mailing list