[Bug 1530096] [NEW] Missing command "search" for apt in bash-completion
Daresch
1530096 at bugs.launchpad.net
Wed Dec 30 11:06:45 UTC 2015
Public bug reported:
1) Ubuntu release
$ lsb_release -rd
Description: Ubuntu 15.10
Release: 15.10
2) Package version
$ apt-cache policy bash-completion
bash-completion:
Installiert: 1:2.1-4.1ubuntu2
Installationskandidat: 1:2.1-4.1ubuntu2
Versionstabelle:
*** 1:2.1-4.1ubuntu2 0
500 http://de.archive.ubuntu.com/ubuntu/ wily/main amd64 Packages
100 /var/lib/dpkg/status
3) Expected
I've expected, if I type
$ apt se<TAP>
that I would get
$ apt search
Or if I type
$ apt s<TAP><TAP>
that I would get
$ apt
search show
4) What happend instead
I get only
$ apt show
But apt has also the command "search".
(5) Suggested Solution
So I looked into the apt file for bash-completion. In line 10 to 12,
there is no command for searching.
Add "search" somewhere in the command list in line 10 to 12.
I've added it behind the command "show".
local COMMANDS=("install" "remove" "purge" "show" "search" "list"
"update" "upgrade" "full-upgrade" "dist-upgrade"
"edit-sources" "help")
File: /usr/share/bash-completion/completions/apt
** Affects: bash-completion (Ubuntu)
Importance: Undecided
Status: New
** Tags: apt bash-completion search
--
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/1530096
Title:
Missing command "search" for apt in bash-completion
Status in bash-completion package in Ubuntu:
New
Bug description:
1) Ubuntu release
$ lsb_release -rd
Description: Ubuntu 15.10
Release: 15.10
2) Package version
$ apt-cache policy bash-completion
bash-completion:
Installiert: 1:2.1-4.1ubuntu2
Installationskandidat: 1:2.1-4.1ubuntu2
Versionstabelle:
*** 1:2.1-4.1ubuntu2 0
500 http://de.archive.ubuntu.com/ubuntu/ wily/main amd64 Packages
100 /var/lib/dpkg/status
3) Expected
I've expected, if I type
$ apt se<TAP>
that I would get
$ apt search
Or if I type
$ apt s<TAP><TAP>
that I would get
$ apt
search show
4) What happend instead
I get only
$ apt show
But apt has also the command "search".
(5) Suggested Solution
So I looked into the apt file for bash-completion. In line 10 to 12,
there is no command for searching.
Add "search" somewhere in the command list in line 10 to 12.
I've added it behind the command "show".
local COMMANDS=("install" "remove" "purge" "show" "search" "list"
"update" "upgrade" "full-upgrade" "dist-upgrade"
"edit-sources" "help")
File: /usr/share/bash-completion/completions/apt
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1530096/+subscriptions
More information about the foundations-bugs
mailing list