Skip to content

Commit

Permalink
fix(filedir): work around bash-4.2 compgen -f -- "''"
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed May 30, 2023
1 parent 49a85bd commit c8bb123
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -1024,6 +1024,9 @@ _comp_compgen_filedir()
local _quoted=$ret
_comp_unlocal ret

# work around bash-4.2 where compgen -f "''" produces nothing.
[[ $_quoted == "''" ]] && _quoted=""

# Munge xspec to contain uppercase version too
# https://lists.gnu.org/archive/html/bug-bash/2010-09/msg00036.html
# news://news.gmane.io/4C940E1C.1010304@case.edu
Expand Down

0 comments on commit c8bb123

Please sign in to comment.