properly escape shell variable strings like ${var} in shell scripts

This commit is contained in:
Trolli Schmittlauch 2022-05-17 18:34:57 +02:00
parent fa9e6e81e1
commit c9741787ef

View file

@ -389,7 +389,7 @@ in
COMPLETION_WAITING_DOTS="true" COMPLETION_WAITING_DOTS="true"
### Fix slowness of pastes with zsh-syntax-highlighting.zsh ### Fix slowness of pastes with zsh-syntax-highlighting.zsh
pasteinit() { pasteinit() {
OLD_SELF_INSERT=$\{$\{(s.:.)widgets[self-insert]}[2,3]} OLD_SELF_INSERT=''${''${(s.:.)widgets[self-insert]}[2,3]}
zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`? zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`?
} }