Skip to content

Commit 0de8dea

Browse files
committed
fix(_expand): avoid pathname expansions in eval arguments
1 parent c472d58 commit 0de8dea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash_completion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@ _expand()
12091209
;;
12101210
~*)
12111211
_tilde "$cur" ||
1212-
eval COMPREPLY[0]="$(printf ~%q "${COMPREPLY[0]#\~}")"
1212+
eval "COMPREPLY[0]=$(printf ~%q "${COMPREPLY[0]#\~}")"
12131213
return ${#COMPREPLY[@]}
12141214
;;
12151215
esac

0 commit comments

Comments
 (0)