[Bug 1288314] Re: bash completion broken with '~' expansion

Mathew Hodson mathew.hodson at gmail.com
Mon May 2 18:02:41 UTC 2016

This bug was fixed in the package bash-completion - 1:2.1-2ubuntu4

bash-completion (1:2.1-2ubuntu4) trusty; urgency=medium

  * fix _quote_readline_by_ref to:
    - avoid escaping 1st '~' (lp: #1288314)
    - avoid quoting if empty, else expansion without args only shows dirs
      (lp: #1288031)
    - replace double escaping to single (eg for completing file/paths with
 -- JuanJo Ciarlante <jjo at canonical.com> Thu, 13 Mar 2014 19:43:22 -0300

** This bug is no longer a duplicate of bug 1288031
   Tab expansion only auto-completes directory names

** Package changed: bash (Ubuntu) => bash-completion (Ubuntu)

** Changed in: bash-completion (Ubuntu)
   Importance: Undecided => High

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

You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash in Ubuntu.

  bash completion broken with '~' expansion

Status in bash-completion package in Ubuntu:
  Fix Released

Bug description:
  After bash upgrade, I'm now not able to tab complete things like this:

  $ whoami
  $ echo ~/
  $ mkdir ~/x
  $ echo "hi mom" > ~/x/greeting.txt
  $ echo "by mom" > ~/x/salutation.txt
  $ echo "filed bug" > ~/x/work.log
  $ ls ~/x/<tab><tab>
    # shows nothing

  $ ls /home/smoser/x/<tab><tab>
  greeting.txt    salutation.txt  work.log

  $ cd
  $ ls ./x/<tab><tab>
  greeting.txt    salutation.txt  work.log        

  So it seems that the ~/ is not getting resolved by the tab completion.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: bash 4.3-2ubuntu1
  ProcVersionSignature: Ubuntu 3.13.0-15.35-generic 3.13.5
  Uname: Linux 3.13.0-15-generic x86_64
  ApportVersion: 2.13.2-0ubuntu5
  Architecture: amd64
  CurrentDesktop: Unity
  Date: Wed Mar  5 11:02:52 2014
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2011-10-19 (868 days ago)
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
  SourcePackage: bash
  UpgradeStatus: Upgraded to trusty on 2013-05-20 (289 days ago)

To manage notifications about this bug go to:

More information about the foundations-bugs mailing list