File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -2581,8 +2581,7 @@ _comp_command_offset()
25812581 _comp_get_words cur
25822582
25832583 if (( COMP_CWORD == 0 )) ; then
2584- compopt -o filenames
2585- _comp_compgen -- -d -c
2584+ _comp_compgen_commands
25862585 else
25872586 _comp_dequote " ${COMP_WORDS[0]} " || ret=${COMP_WORDS[0]}
25882587 local cmd=$ret compcmd=$ret
Original file line number Diff line number Diff line change @@ -19,8 +19,7 @@ _comp_cmd_su()
1919 return
2020 ;;
2121 -c | --command | --session-command)
22- compopt -o filenames
23- _comp_compgen -- -d -c
22+ _comp_compgen_commands
2423 return
2524 ;;
2625 esac
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ _comp_cmd_gdb()
2020 if _comp_looks_like_path " $cur " ; then
2121 # compgen -c works as expected if $cur contains any slashes.
2222 local PATH=" $PATH :."
23- _comp_compgen -- -d -c
23+ _comp_compgen_commands
2424 else
2525 # otherwise compgen -c contains Bash's built-in commands,
2626 # functions and aliases. Thus we need to retrieve the program
You can’t perform that action at this time.
0 commit comments