Bug 32836 - bash-completion is broken for "less"
Summary: bash-completion is broken for "less"
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Low normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA9-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2024-02-12 16:59 CET by Aurelian R
Modified: 2024-02-14 17:59 CET (History)
6 users (show)

See Also:
Source RPM: less-632-1.mga9.src.rpm
CVE:
Status comment:


Attachments
patch to fix bash completion (2.04 KB, patch)
2024-02-12 16:59 CET, Aurelian R
Details | Diff
Suggested Advisory (269 bytes, text/plain)
2024-02-12 21:56 CET, katnatek
Details
Typo correction in advisory (269 bytes, text/plain)
2024-02-12 22:00 CET, katnatek
Details

Description Aurelian R 2024-02-12 16:59:23 CET
Created attachment 14370 [details]
patch to fix bash completion

bash completion for "less" is broken on both Mageia 9 and Cauldron.

Attached is a patch for less.spec file that should make it work again.
Comment 1 David GEIGER 2024-02-12 18:43:08 CET
Fixed both mga9 and Cauldron!

CC: (none) => geiger.david68210

Comment 2 David GEIGER 2024-02-12 18:44:03 CET
Assigning to QA,

Packages in 9/Core/Updates_testing:
======================
less-632-1.1.mga9

From SRPMS:
less-632-1.1.mga9.src.rpm

Assignee: bugsquad => qa-bugs

Comment 3 Brian Rockwell 2024-02-12 19:54:41 CET
MGA9-64, plasma

installed

used less, seems to be working.  Not sure how to set up less for bash-completion though.

CC: (none) => brtians1

katnatek 2024-02-12 20:41:35 CET

Keywords: (none) => feedback

Comment 4 katnatek 2024-02-12 20:44:44 CET
(In reply to Aurelian R from comment #0)
> Created attachment 14370 [details]
> patch to fix bash completion
> 
> bash completion for "less" is broken on both Mageia 9 and Cauldron.
> 
> Attached is a patch for less.spec file that should make it work again.

Can you give an example? I see /etc/bash_completion.d/less_completion (with other files) and the changes move the file to /etc/bash_completion.d/completions/less_completion
Comment 5 Aurelian R 2024-02-12 21:24:33 CET
Tested both distributions and less looks OK for me.

(In reply to Brian Rockwell from comment #3)
> used less, seems to be working.  Not sure how to set up less for
> bash-completion though.

Have bash-completion installed(sudo urpmi bash-completion). 
With old package less-632-1.mga9 installed, in a terminal with bash( echo $SHELL should post /bin/bash) type as you see: 
less -<TAB>   and nothing happens, where <TAB> means pressing TAB key.

After updating less package to less-632-1.1.mga9 and refreshed bash environment for your terminal or use a new bash terminal, type: 
less -<TAB>L<TAB>I<TAB>

now you should see what bash-completion does for less command.

Regards.
Comment 6 katnatek 2024-02-12 21:44:11 CET
Tested in real hardware mageia x86_64

I already have bash-completions 

rpm -q bash-completion
bash-completion-2.11-2.mga9

less -<TAB> 

Does nothing

Update to testing version

less -<TAB>

Now shows the options you can use

Keywords: feedback => (none)
Whiteboard: (none) => MGA9-64-OK

katnatek 2024-02-12 21:55:40 CET

CC: (none) => marja11, tarazed25

Comment 7 katnatek 2024-02-12 21:56:48 CET Comment hidden (obsolete)
Comment 8 katnatek 2024-02-12 22:00:08 CET
Created attachment 14372 [details]
Typo correction in advisory

Attachment 14371 is obsolete: 0 => 1

Comment 9 Thomas Andrews 2024-02-13 17:29:01 CET
Validating.

Keywords: (none) => validated_update
CC: (none) => andrewsfarm, sysadmin-bugs

Marja Van Waes 2024-02-14 16:34:34 CET

Keywords: (none) => advisory

Comment 10 Mageia Robot 2024-02-14 17:59:27 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2024-0053.html

Resolution: (none) => FIXED
Status: NEW => RESOLVED


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