Bug 2322963 - completion script not compatible with bash-completion 2.13+
Summary: completion script not compatible with bash-completion 2.13+
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: the_silver_searcher
Version: 41
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Shlomi Fish
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-31 16:12 UTC by Stephen Finucane
Modified: 2024-11-09 01:45 UTC (History)
2 users (show)

Fixed In Version: the_silver_searcher-2.2.0^2020704.5a1c8d8-11.fc42 the_silver_searcher-2.2.0^2020704.5a1c8d8-11.fc41
Clone Of:
Environment:
Last Closed: 2024-10-31 18:42:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Stephen Finucane 2024-10-31 16:12:30 UTC
As noted on the ag issue tracker [1], the completion script provided with ag is not compatible with the most recent version of bash-completion including that in Fedora 41. This results in the following error output when attempting to tab complete:

  ❯ ag readbash: _split_longopt: command not found                                                                                                                                                                                                                                                                                                                                                                                            
  README.rst

I suspect the solution here is to either (a) temporarily include the proposed bug fix [2] pending its merge or (b) take the fact that no patches have merged to ag in over 4 years as a sign that it's time to kick-off the deprecation and removal of the package from Fedora :(

Personally, I have patched the completion script at `/usr/share/bash-completion/completions/ag` and will resolve the conflict if/when dnf prompts me to.

[1] https://github.com/ggreer/the_silver_searcher/issues/1537
[2] https://github.com/ggreer/the_silver_searcher/pull/1540

Reproducible: Always

Steps to Reproduce:
1. Install `ag`
2. Attempt to tab-complete a filename

Actual Results:  
ag readbash: _split_longopt: command not found                                                                                                                                                                                                                                                                                                                                                                                            
README.rst

Expected Results:  
ag README.rst

Comment 1 Fedora Update System 2024-10-31 18:38:39 UTC
FEDORA-2024-b0c8618410 (the_silver_searcher-2.2.0^2020704.5a1c8d8-11.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-b0c8618410

Comment 2 Fedora Update System 2024-10-31 18:42:29 UTC
FEDORA-2024-b0c8618410 (the_silver_searcher-2.2.0^2020704.5a1c8d8-11.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Fedora Update System 2024-10-31 19:30:57 UTC
FEDORA-2024-aa887d0633 (the_silver_searcher-2.2.0^2020704.5a1c8d8-11.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-aa887d0633

Comment 4 Fedora Update System 2024-11-01 01:36:25 UTC
FEDORA-2024-aa887d0633 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-2024-aa887d0633`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-aa887d0633

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

Comment 5 Fedora Update System 2024-11-09 01:45:30 UTC
FEDORA-2024-aa887d0633 (the_silver_searcher-2.2.0^2020704.5a1c8d8-11.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.