Skip to content

Commit efdb309

Browse files
committed
refactor(_expand): make exit status explicit
1 parent 992f28e commit efdb309

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bash_completion

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1751,10 +1751,11 @@ _expand()
17511751
;;
17521752
~*)
17531753
_comp_compgen -v COMPREPLY tilde &&
1754-
eval "COMPREPLY[0]=$(printf ~%q "${COMPREPLY[0]#\~}")"
1755-
return ${#COMPREPLY[@]}
1754+
eval "COMPREPLY[0]=$(printf ~%q "${COMPREPLY[0]#\~}")" &&
1755+
return 1
17561756
;;
17571757
esac
1758+
return 0
17581759
}
17591760

17601761
# Process ID related functions.

0 commit comments

Comments
 (0)