Skip to content

Commit bbe2f09

Browse files
committed
fix(xdg-mime): mime type array index expansion
#827 (comment)
1 parent 1178359 commit bbe2f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

completions/xdg-mime

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ _xdg_mime_mimetype()
99
command cd "$d" 2>/dev/null || exit 1
1010
compgen -f -o plusdirs -X "!*.xml" -- "$cur"
1111
)) || continue
12-
for i in "${!arr[*]}"; do
12+
for i in "${!arr[@]}"; do
1313
case ${arr[i]} in
1414
packages*) unset -v "arr[i]" ;; # not a MIME type dir
1515
*.xml) arr[i]=${arr[i]%.xml} ;;

0 commit comments

Comments
 (0)