Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -DDEFAULT_PATH_VALUE='/usr/local/sbin:/usr/local/bin:/usr/bin' -DSTANDARD_UTILS_PATH='/usr/bin' -DSYS_BASHRC='/etc/bash.bashrc' -DSYS_BASH_LOGOUT='/etc/bash.bash_logout' -DNON_INTERACTIVE_LOGIN_SHELLS uname output: Linux t420 5.15.40-1-lts #1 SMP Sun, 15 May 2022 19:07:59 +0000 x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu
Bash Version: 5.1 Patch Level: 16 Release Status: release Description: bash allows declaring functions with a name that contains `*'. In the output of `complete -p', those function names will not be quoted which makes the output of `complete -p' output not safe to pass to `eval' or output to a file that will be read by `source'. I think bash should quote the arguments to `-F' in the output of `complete -p'. Repeat-By: bash-5.1$ a*x () { echo hi ;} bash-5.1$ 'a*x' hi bash-5.1$ complete -W 'something something' -F 'a*x' hello bash-5.1$ complete -p hello complete -W 'something something' -F a*x hello