bash completion not working: uses deprecated have()

Bug #1775046 reported by Paulo Marcel Coelho Aragão
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unar (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

bash completion, defined in /usr/share/bash-completion/completions/unar, doesn't work: the completion is not dynamically loaded, because it uses deprecated helper function have().

According to /usr/share/bash-completions/bash_completion, which defines the helper functions:

# Backwards compatibility for compat completions that use have().
# @deprecated should no longer be used; generally not needed with dynamically
# loaded completions, and _have is suitable for runtime use.

and at the end of the file:

unset -f have
unset have

which means: function have() is not available for usage. The bash completion for unar and lsar conditionally defines _unar and the comspec for unar and lsar:

have unar &&
_unar()
{
...
} &&
complete -F _unar unar

have lsar &&
_lsar()
{
...
} &&
complete -F _lsar lsar

All instances of have should be replaced by _have.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: unar 1.10.1-2build3
ProcVersionSignature: Ubuntu 4.15.0-22.24-generic 4.15.17
Uname: Linux 4.15.0-22-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.1
Architecture: amd64
CurrentDesktop: XFCE
Date: Mon Jun 4 14:49:11 2018
InstallationDate: Installed on 2018-04-28 (37 days ago)
InstallationMedia: Xubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
SourcePackage: unar
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Paulo Marcel Coelho Aragão (marcelpaulo) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unar - 1.10.7+ds1+really1.10.1-2

---------------
unar (1.10.7+ds1+really1.10.1-2) unstable; urgency=medium

  * Team upload.
  * Move package to team-maintenance. (Closes: #1010174)
  * debian/watch: Monitor new upstream on GitHub.

 -- Boyuan Yang <email address hidden> Mon, 02 May 2022 14:19:10 -0400

Changed in unar (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.