Skip to content

Commit

Permalink
feat(_comp_compgen_commands): align return value with other compgens
Browse files Browse the repository at this point in the history
Co-authored-by: Koichi Murase <myoga.murase@gmail.com>
  • Loading branch information
scop and akinomyoga authored Jun 1, 2023
1 parent c8b9830 commit 9d3362e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -2706,7 +2706,7 @@ _complete_as_root()
# @since 2.12
_comp_compgen_commands()
{
[[ ! ${cur-} ]] && shopt -q no_empty_cmd_completion && return
[[ ! ${cur-} ]] && shopt -q no_empty_cmd_completion && return 1
# -o filenames for e.g. spaces in paths to and in command names
_comp_compgen -- -c -o plusdirs && compopt -o filenames
}
Expand Down

0 comments on commit 9d3362e

Please sign in to comment.