Package: bash-completion
Version: 1:2.16.0-7
Severity: normal

Hi,
i first experienced this by accident in an Windows WSL Debian Container
but could reproduce it on my main working machine

With activated bash completion (default)
fontimage <tab><tab>

opens a fontforge window. Thats pretty unexpected. I have no clue
about bash completetion but my first impression is that this
is a bash complete issue as it tries to find the interpreter
of the shell script /usr/bin/fontimage and then runs it.


set -x

+ local _BASH_REMATCH=
+ local executable=
+ req_argv=()
+ local req_argv
+ [[ -z '' ]]
+ executable=fontimage
+ req_argv=("" "${COMP_WORDS[@]:1}")
+ __python_argcomplete_expand_tilde_by_ref executable
+ '[' -n '' ']'
+ '[' f = '~' ']'
+ local ARGCOMPLETE=0
+ [[ fontimage == python* ]]
+ [[ fontimage == pypy* ]]
+ __python_argcomplete_which fontimage
++ __python_argcomplete_which fontimage
++ [[ -n '' ]]
++ type -P fontimage
+ local SCRIPT_NAME=/usr/bin/fontimage
+ __python_argcomplete_scan_head_noerr /usr/bin/fontimage interpreter
+ __python_argcomplete_scan_head /usr/bin/fontimage interpreter
+ __python_argcomplete_scan_head_noerr /usr/bin/fontimage magic_string
+ __python_argcomplete_scan_head /usr/bin/fontimage magic_string
+ __python_argcomplete_scan_head_noerr /usr/bin/fontimage interpreter
+ __python_argcomplete_scan_head /usr/bin/fontimage interpreter
+ __python_argcomplete_upshift_bash_rematch
+ [[ -z '' ]]
+ _BASH_REMATCH=("" "${BASH_REMATCH[@]}")
+ local 'interpreter=/usr/bin/fontforge -lang=ff'
+ [[ -n '' ]]
+ interpreter=($interpreter)
+ __python_argcomplete_run /usr/bin/fontforge -lang=ff -m 
argcomplete._check_console_script /usr/bin/fontimage
+ [[ -z '' ]]
+ __python_argcomplete_run_inner /usr/bin/fontforge -lang=ff -m 
argcomplete._check_console_script /usr/bin/fontimage
+ [[ -z '' ]]
+ /usr/bin/fontforge -lang=ff -m argcomplete._check_console_script 
/usr/bin/fontimage

Flo

ii  bash                 5.2.37-2+b5
ii  bash-completion      1:2.16.0-7
ii  fontforge-common     1:20230101~dfsg-4
ii  libc6                2.41-12+deb13u1
ii  libcairo2            1.18.4-1+b1
ii  libfontforge4        1:20230101~dfsg-4+b1
ii  libglib2.0-0t64      2.84.4-3~deb13u1
ii  libgtk-3-0t64        3.24.49-3
ii  libpango-1.0-0       1.56.3-1
ii  libpangocairo-1.0-0  1.56.3-1
ii  libpython3.13        3.13.5-2

--
Florian Lohoff                                                     [email protected]
  Any sufficiently advanced technology is indistinguishable from magic.

Attachment: signature.asc
Description: PGP signature

Reply via email to