File boo1190929-9af4afd0.patch of Package bash-completion-doc.21502

Based on 9af4afd01facc0dc3407c8b81375bedd4b2f5fa4 Mon Sep 17 00:00:00 2001
From: Michal Suchanek <msuchanek@suse.de>
Date: Thu, 30 Sep 2021 12:25:49 +0200
Subject: [PATCH] insmod, modinfo, modprobe: support zstd compressed modules

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
---
 completions/insmod   |    2 +-
 completions/modinfo  |    2 +-
 completions/modprobe |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

--- a/completions/insmod
+++ b/completions/insmod	2021-10-04 13:51:38.710974787 +0000
@@ -7,7 +7,7 @@ _insmod()
 
     # do filename completion for first argument
     if [[ $cword -eq 1 ]]; then
-        _filedir '@(?(k)o?(.gz))'
+        _filedir '@(?(k)o?(.[gx]z|.zst|.bz2))'
     else # do module parameter completion
         COMPREPLY=( $( compgen -W "$( PATH="$PATH:/sbin" modinfo \
             -p ${words[1]} 2>/dev/null | cut -d: -f1 )" -- "$cur" ) )
--- a/completions/modinfo
+++ b/completions/modinfo	2021-10-04 13:52:55.389641470 +0000
@@ -34,7 +34,7 @@ _modinfo()
 
     # do filename completion if we're giving a path to a module
     if [[ "$cur" == @(*/|[.~])* ]]; then
-        _filedir '@(?(k)o?(.gz))'
+        _filedir '@(?(k)o?(.[gx]z|.zst|.bz2))'
     else
         _modules $version
     fi
--- a/completions/modprobe
+++ b/completions/modprobe	2021-10-04 13:53:26.897093585 +0000
@@ -80,7 +80,7 @@ _modprobe()
         insert)
             # do filename completion if we're giving a path to a module
             if [[ "$cur" == @(*/|[.~])* ]]; then
-                _filedir '@(?(k)o?(.gz))'
+                _filedir '@(?(k)o?(.[gx]z|.zst|.bz2))'
             elif [[ -n "$module" ]]; then
                 # do module parameter completion
                 COMPREPLY=( $( compgen -W "$( PATH="$PATH:/sbin" modinfo \
openSUSE Build Service is sponsored by