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
Still seeing this issue with python command line scripts. Even after running apt-get update/upgrade for 14.04.
cmdline.py :: ------- ------- -- description= "bash-completio n test") add_argument( "--filename" , "-f") args.filename) ------- ------- ------
-------
import argparse
parser = ArgumentParser(
parser.
args = parser.parse_args()
print 'Filename: {}'.format(
-------
$ 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 jp.archive. ubuntu. com/ubuntu/ trusty/main amd64 Packages dpkg/status jp.archive. ubuntu. com/ubuntu/ trusty-updates/main amd64 Packages dpkg/status jp.archive. ubuntu. com/ubuntu/ trusty/main amd64 Packages
bash-completion:
Installed: 1:2.1-4
Candidate: 1:2.1-4
Version table:
*** 1:2.1-4 0
500 http://
100 /var/lib/
bash:
Installed: 4.3-7ubuntu1
Candidate: 4.3-7ubuntu1
Version table:
*** 4.3-7ubuntu1 0
500 http://
100 /var/lib/
4.3-6ubuntu1 0
500 http://