[Bug 1290572] [NEW] tab completion skips files when path begins with ~
Steve Beattie
sbeattie at ubuntu.com
Mon Mar 10 21:46:16 UTC 2014
Public bug reported:
Tab completion does not list files when the path begins with ~, like so:
ubuntu at trusty-i386:~$ cd ~ && ls -l testdir
total 8
drwxrwxr-x 2 ubuntu ubuntu 4096 Mar 10 13:15 dir1
drwxrwxr-x 2 ubuntu ubuntu 4096 Mar 10 13:15 Dir2
-rw-rw-r-- 1 ubuntu ubuntu 0 Mar 10 13:15 file
ubuntu at trusty-i386:~$ ls -l testdir/<tab><tab>
dir1/ Dir2/ file
ubuntu at trusty-i386:~$ ls -l ~/testdir/<tab><tab>
dir1/ Dir2/
For the record:
ubuntu at trusty-i386:~$ compopt ls
compopt +o bashdefault +o default +o dirnames +o filenames +o nospace +o plusdirs ls
ubuntu at trusty-i386:~$ complete -p ls
complete -F _longopt ls
ubuntu at trusty-i386:~$ alias ls
alias ls='ls --color=auto'
I can't tell if this is the same bug as bug 1288031, as I'm only seeing
the auto-completion of only directory names when paths begin with ~, not
for all paths.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: bash-completion 1:2.1-2ubuntu2
ProcVersionSignature: Ubuntu 3.13.0-16.36-generic 3.13.5
Uname: Linux 3.13.0-16-generic i686
ApportVersion: 2.13.3-0ubuntu1
Architecture: i386
Date: Mon Mar 10 14:33:50 2014
InstallationDate: Installed on 2014-02-27 (11 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha i386 (20140224)
PackageArchitecture: all
ProcEnviron:
TERM=screen
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: bash-completion
UpgradeStatus: No upgrade log present (probably fresh install)
ubuntu at trusty-i386:~$ apt-cache policy bash
bash:
Installed: 4.3-2ubuntu1
Candidate: 4.3-2ubuntu1
Version table:
*** 4.3-2ubuntu1 0
500 http://ubuntu-mirror/ubuntu/ trusty/main i386 Packages
100 /var/lib/dpkg/status
** Affects: bash-completion (Ubuntu)
Importance: Undecided
Status: New
** Tags: apport-bug i386 trusty
** Description changed:
Tab completion does not list files when the path begins with ~, like so:
- ubuntu at trusty-i386:~$ cd ~ && ls -l testdir
- total 8
- drwxrwxr-x 2 ubuntu ubuntu 4096 Mar 10 13:15 dir1
- drwxrwxr-x 2 ubuntu ubuntu 4096 Mar 10 13:15 Dir2
- -rw-rw-r-- 1 ubuntu ubuntu 0 Mar 10 13:15 file
- ubuntu at trusty-i386:~$ ls -l testdir/<tab><tab>
- dir1/ Dir2/ file
- ubuntu at trusty-i386:~$ ls -l ~/testdir/<tab><tab>
- dir1/ Dir2/
+ ubuntu at trusty-i386:~$ cd ~ && ls -l testdir
+ total 8
+ drwxrwxr-x 2 ubuntu ubuntu 4096 Mar 10 13:15 dir1
+ drwxrwxr-x 2 ubuntu ubuntu 4096 Mar 10 13:15 Dir2
+ -rw-rw-r-- 1 ubuntu ubuntu 0 Mar 10 13:15 file
+ ubuntu at trusty-i386:~$ ls -l testdir/<tab><tab>
+ dir1/ Dir2/ file
+ ubuntu at trusty-i386:~$ ls -l ~/testdir/<tab><tab>
+ dir1/ Dir2/
For the record:
- ubuntu at trusty-i386:~$ compopt ls
- compopt +o bashdefault +o default +o dirnames +o filenames +o nospace +o plusdirs ls
- ubuntu at trusty-i386:~$ complete -p ls
- complete -F _longopt ls
- ubuntu at trusty-i386:~$ alias ls
- alias ls='ls --color=auto'
+ ubuntu at trusty-i386:~$ compopt ls
+ compopt +o bashdefault +o default +o dirnames +o filenames +o nospace +o plusdirs ls
+ ubuntu at trusty-i386:~$ complete -p ls
+ complete -F _longopt ls
+ ubuntu at trusty-i386:~$ alias ls
+ alias ls='ls --color=auto'
I can't tell if this is the same bug as bug 1288031, as I'm only seeing
the auto-completion of only directory names when paths begin with ~, not
for all paths.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: bash-completion 1:2.1-2ubuntu2
ProcVersionSignature: Ubuntu 3.13.0-16.36-generic 3.13.5
Uname: Linux 3.13.0-16-generic i686
ApportVersion: 2.13.3-0ubuntu1
Architecture: i386
Date: Mon Mar 10 14:33:50 2014
InstallationDate: Installed on 2014-02-27 (11 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha i386 (20140224)
PackageArchitecture: all
ProcEnviron:
- TERM=screen
- PATH=(custom, no user)
- XDG_RUNTIME_DIR=<set>
- LANG=en_US.UTF-8
- SHELL=/bin/bash
+ TERM=screen
+ PATH=(custom, no user)
+ XDG_RUNTIME_DIR=<set>
+ LANG=en_US.UTF-8
+ SHELL=/bin/bash
SourcePackage: bash-completion
UpgradeStatus: No upgrade log present (probably fresh install)
+
+ ubuntu at trusty-i386:~$ apt-cache policy bash
+ bash:
+ Installed: 4.3-2ubuntu1
+ Candidate: 4.3-2ubuntu1
+ Version table:
+ *** 4.3-2ubuntu1 0
+ 500 http://ubuntu-mirror/ubuntu/ trusty/main i386 Packages
+ 100 /var/lib/dpkg/status
--
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/1290572
Title:
tab completion skips files when path begins with ~
Status in “bash-completion” package in Ubuntu:
New
Bug description:
Tab completion does not list files when the path begins with ~, like
so:
ubuntu at trusty-i386:~$ cd ~ && ls -l testdir
total 8
drwxrwxr-x 2 ubuntu ubuntu 4096 Mar 10 13:15 dir1
drwxrwxr-x 2 ubuntu ubuntu 4096 Mar 10 13:15 Dir2
-rw-rw-r-- 1 ubuntu ubuntu 0 Mar 10 13:15 file
ubuntu at trusty-i386:~$ ls -l testdir/<tab><tab>
dir1/ Dir2/ file
ubuntu at trusty-i386:~$ ls -l ~/testdir/<tab><tab>
dir1/ Dir2/
For the record:
ubuntu at trusty-i386:~$ compopt ls
compopt +o bashdefault +o default +o dirnames +o filenames +o nospace +o plusdirs ls
ubuntu at trusty-i386:~$ complete -p ls
complete -F _longopt ls
ubuntu at trusty-i386:~$ alias ls
alias ls='ls --color=auto'
I can't tell if this is the same bug as bug 1288031, as I'm only
seeing the auto-completion of only directory names when paths begin
with ~, not for all paths.
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: bash-completion 1:2.1-2ubuntu2
ProcVersionSignature: Ubuntu 3.13.0-16.36-generic 3.13.5
Uname: Linux 3.13.0-16-generic i686
ApportVersion: 2.13.3-0ubuntu1
Architecture: i386
Date: Mon Mar 10 14:33:50 2014
InstallationDate: Installed on 2014-02-27 (11 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha i386 (20140224)
PackageArchitecture: all
ProcEnviron:
TERM=screen
PATH=(custom, no user)
XDG_RUNTIME_DIR=<set>
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: bash-completion
UpgradeStatus: No upgrade log present (probably fresh install)
ubuntu at trusty-i386:~$ apt-cache policy bash
bash:
Installed: 4.3-2ubuntu1
Candidate: 4.3-2ubuntu1
Version table:
*** 4.3-2ubuntu1 0
500 http://ubuntu-mirror/ubuntu/ trusty/main i386 Packages
100 /var/lib/dpkg/status
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1290572/+subscriptions
More information about the foundations-bugs
mailing list