Package: bash-completion
Version: 1:2.11-7
Severity: normal
Tags: patch
X-Debbugs-Cc: msl0000023...@gmail.com

Hello.

I think completing file names to include '*.sh' only, is a bug, because in
reality many Unix shell scripts are named without a suffix at all.

Based on my experiences for past years, excluding other file names did more
confusions and inconveniences to the users than good. Personally I have always
to run 'rm -f /usr/share/bash-completion/completions/sh' in my Debian systems
after this package being installed or updated. Now I hope it can be fixed in
upstream so I need nolonger doing that.


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: ppc64

Kernel: Linux 4.19.271-rivoreo-powerpc64-largepage (SMP w/176 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), 
LANGUAGE=zh_TW:zh_CN:zh:en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

-- no debconf information
--- /usr/share/bash-completion/completions/sh.orig      2023-07-17 
06:01:32.000000000 +0000
+++ /usr/share/bash-completion/completions/sh   2023-07-28 08:38:25.392000000 
+0000
@@ -26,10 +26,9 @@
         return
     fi
 
-    local args ext=
+    local args
     _count_args "" "@(-c|[-+]o)"
-    ((args == 1)) && ext="sh"
-    _filedir $ext
+    _filedir
 } &&
     complete -F _sh sh
 

Reply via email to