We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca8e240 commit 41236daCopy full SHA for 41236da
completions/gdb
@@ -15,7 +15,6 @@ _comp_cmd_gdb()
15
16
# gdb [options] [executable-file [core-file or process-id]]
17
if ((cword == 1)); then
18
- local IFS
19
compopt -o filenames
20
if _comp_looks_like_path "$cur"; then
21
# compgen -c works as expected if $cur contains any slashes.
@@ -28,6 +27,8 @@ _comp_cmd_gdb()
28
27
local path_array
29
_comp_compgen -Rv path_array split -F : -X '' -- "$PATH"
30
_comp_compgen_split -o plusdirs -- "$(
+ # Note: ${v+"$@"} does not work with empty IFS in bash < 4.4
31
+ IFS=$' \t\n'
32
find ${path_array[@]+"${path_array[@]}"} . -mindepth 1 \
33
-maxdepth 1 -not -type d -executable -printf '%f\n' \
34
2>/dev/null
0 commit comments