Bug 2364171

Summary: bash completion for img2sixel doesn't work
Product: [Fedora] Fedora Reporter: Iwasa Kazmi <kzmizzz>
Component: libsixelAssignee: Ryan <errornointernet>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: 41CC: errornointernet
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: libsixel-1.10.5-2.fc41 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-05-14 01:20:30 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Iwasa Kazmi 2025-05-05 19:31:21 UTC
Description of problem:
When bash completion is invoked for img2sixel, it shows as follows:
-bash: have: command not found
-bash: have: command not found
-bash: have: command not found
-bash: have: command not found
-bash: have: command not found
-bash: have: command not found

`have` function was provided in bash-completion, but seems to have been removed in 2.12.

https://github.com/scop/bash-completion/commit/9a387d159503e992baf5516ca201ab850d8f1335


Version-Release number of selected component (if applicable):
libsixel-utils.x86_64    1.10.3-6.fc41
bash-completion.noarch   1:2.16-1.fc41

How reproducible:
On bash, type "img2sixel -" and press tab key.

Actual results:
On the first attempt, some "-bash: have: command not found" are printed.
On the attempts after that, nothing happens.

Expected results:
Option list should be printed.

Additional info:

Comment 1 Ryan 2025-05-05 23:01:18 UTC
Looks like this was also reported upstream: https://github.com/libsixel/libsixel/issues/81

The repository is currently archived so I'll add https://github.com/libsixel/libsixel/pull/89 as a patch instead.
I'm not exactly sure what the situation is with the old v1 API and how it's supposed to be used. I see that `have`
is still provided for compatibility at `/etc/bash_completion.d/000_bash_completion_compat.bash`, but isn't loaded.

Comment 2 Fedora Update System 2025-05-05 23:24:36 UTC
FEDORA-2025-b0aea5597a (libsixel-1.10.5-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-b0aea5597a

Comment 3 Fedora Update System 2025-05-06 02:43:51 UTC
FEDORA-2025-b0aea5597a has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-b0aea5597a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-b0aea5597a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2025-05-14 01:20:30 UTC
FEDORA-2025-b0aea5597a (libsixel-1.10.5-2.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.