Bug 2310261

Summary: Error in bash completation script
Product: [Fedora] Fedora Reporter: Miroslav Suchý <msuchy>
Component: lldpadAssignee: Aaron Conole <aconole>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 41CC: aconole, cleech, dahorak, epel-packagers-sig, jbrazdil, jiri
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-12-16 17:10:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Miroslav Suchý 2024-09-05 16:23:58 UTC
After upgrading to Fedora 41 I get:

LC_ALL=cs_CZ.utf-8 bash  /usr/share/bash-completion/bash_completion
/etc/bash_completion.d/lldpad: řádek 19: have: příkaz nenalezen
/etc/bash_completion.d/lldptool: řádek 41: have: příkaz nenalezen
/etc/bash_completion.d/nanoblogger.bash_completion: řádek 5: have: příkaz nenalezen

it state that command have is not found.
Interesting that with the locale set to C or en_US, this does not happen.

Reproducible: Always

Comment 1 Miroslav Suchý 2024-09-05 16:27:50 UTC
I see in /etc/bash_completion.d/000_bash_completion_compat.bash

# Backwards compatibility for compat completions that use have().
# @deprecated 1.90 should no longer be used; generally not needed with
#   dynamically loaded completions, and _comp_have_command is suitable for
#   runtime use.
# shellcheck disable=SC2317 # available at load time only
have()
{
    unset -v have
    _comp_have_command "$1" && have=yes
}

Comment 2 Miroslav Suchý 2024-09-05 16:35:47 UTC
It seems that best solution is simply replace
  have lldptool && _lldptool_options()
by 
  _lldptool_options()

Comment 3 Honza Brázdil 2025-02-01 21:56:34 UTC
Also seeing this problem

Comment 4 Adam Williamson 2025-12-02 01:16:43 UTC
This message is a reminder that Fedora Linux 41 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 41 on 2025-12-15.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '41'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 41 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 5 Samyak Jain (RedHat) 2025-12-16 17:10:02 UTC
Fedora Linux 41 entered end-of-life (EOL) status on 2025-12-15.

Fedora Linux 41 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.