[Bug 1358154] Re: Bash autocompletion not working for apt command

Mathew Hodson mathew.hodson at gmail.com
Sat Aug 15 02:46:57 UTC 2015


** Description changed:

  [Impact]
  
  Bash completion is not working for the apt tool.
  
  With the apt-get utility, you could do apt-g<tab> upg<tab> and hit enter
  and be done. With the new apt tool, you can no longer do this and
  instead have to type in apt list/update/upgrade/full-upgrade.
  
  [Test Case]
  
- * Type "apt upd"
+ * Type "apt upd".
  
- * Press Tab key
+ * Press Tab key.
  
- * Command should complete to "apt update"
+ * Command should complete to "apt update".
  
  * Repeat with the first three letters of other frequently used commands
- upgrade/remove/purge
+ such as install/remove/purge/upgrade/full-upgrade/edit-sources.
+ 
+ * For the install command, the package name should be completed based on
+ packages available in the repositories.
+ 
+ * For the remove/purge command, the package name should be completed
+ based on packages installed on the system.
  
  [Regression Potential]
  
  There shouldn't be any regression since bash-completion didn't
  previously support apt at all.

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1358154

Title:
  Bash autocompletion not working for apt command

Status in bash-completion package in Ubuntu:
  Fix Released
Status in bash-completion source package in Trusty:
  New
Status in bash-completion package in Debian:
  New

Bug description:
  [Impact]

  Bash completion is not working for the apt tool.

  With the apt-get utility, you could do apt-g<tab> upg<tab> and hit
  enter and be done. With the new apt tool, you can no longer do this
  and instead have to type in apt list/update/upgrade/full-upgrade.

  [Test Case]

  * Type "apt upd".

  * Press Tab key.

  * Command should complete to "apt update".

  * Repeat with the first three letters of other frequently used
  commands such as install/remove/purge/upgrade/full-upgrade/edit-
  sources.

  * For the install command, the package name should be completed based
  on packages available in the repositories.

  * For the remove/purge command, the package name should be completed
  based on packages installed on the system.

  [Regression Potential]

  There shouldn't be any regression since bash-completion didn't
  previously support apt at all.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1358154/+subscriptions



More information about the Ubuntu-sponsors mailing list