Skip to content

Commit c8bb123

Browse files
committed
fix(filedir): work around bash-4.2 compgen -f -- "''"
1 parent 49a85bd commit c8bb123

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bash_completion

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,9 @@ _comp_compgen_filedir()
10241024
local _quoted=$ret
10251025
_comp_unlocal ret
10261026

1027+
# work around bash-4.2 where compgen -f "''" produces nothing.
1028+
[[ $_quoted == "''" ]] && _quoted=""
1029+
10271030
# Munge xspec to contain uppercase version too
10281031
# https://lists.gnu.org/archive/html/bug-bash/2010-09/msg00036.html
10291032
# news://news.gmane.io/[email protected]

0 commit comments

Comments
 (0)