Comment 8 for bug 1288031

Revision history for this message
shanec (shane-cousins) wrote :

Still seeing this issue with python command line scripts. Even after running apt-get update/upgrade for 14.04.

cmdline.py ::
-----------------------
import argparse
parser = ArgumentParser(description="bash-completion test")
parser.add_argument("--filename", "-f")
args = parser.parse_args()
print 'Filename: {}'.format(args.filename)
---------------------------

$ python cmdline.py -f ~/[tab] [tab] [tab]

only returns directories, no files are listed.

$lsb_release -rd
Description: Ubuntu 14.04 LTS
Release: 14.04

$ apt-cache policy bash-completion bash
bash-completion:
  Installed: 1:2.1-4
  Candidate: 1:2.1-4
  Version table:
 *** 1:2.1-4 0
        500 http://jp.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status
bash:
  Installed: 4.3-7ubuntu1
  Candidate: 4.3-7ubuntu1
  Version table:
 *** 4.3-7ubuntu1 0
        500 http://jp.archive.ubuntu.com/ubuntu/ trusty-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     4.3-6ubuntu1 0
        500 http://jp.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages