Skip to content

Commit

Permalink
fix(_comp__init_set_up_service_completions): work around failglob
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Sep 24, 2023
1 parent 5fe98f3 commit 2529d40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bash_completion
Expand Up @@ -1984,10 +1984,11 @@ _service()

_comp__init_set_up_service_completions()
{
local sysvdirs svc svcdir
local sysvdirs svc svcdir svcs
_comp_sysvdirs &&
for svcdir in "${sysvdirs[@]}"; do
for svc in "$svcdir"/!($_comp_backup_glob); do
_comp_expand_glob svcs '"$svcdir"/!($_comp_backup_glob)'
for svc in "${svcs[@]}"; do
[[ -x $svc ]] && complete -F _service "$svc"
done
done
Expand Down

0 comments on commit 2529d40

Please sign in to comment.