Skip to content

Commit 9d3362e

Browse files
scopakinomyoga
andauthored
feat(_comp_compgen_commands): align return value with other compgens
Co-authored-by: Koichi Murase <[email protected]>
1 parent c8b9830 commit 9d3362e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash_completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2706,7 +2706,7 @@ _complete_as_root()
27062706
# @since 2.12
27072707
_comp_compgen_commands()
27082708
{
2709-
[[ ! ${cur-} ]] && shopt -q no_empty_cmd_completion && return
2709+
[[ ! ${cur-} ]] && shopt -q no_empty_cmd_completion && return 1
27102710
# -o filenames for e.g. spaces in paths to and in command names
27112711
_comp_compgen -- -c -o plusdirs && compopt -o filenames
27122712
}

0 commit comments

Comments
 (0)