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

workmac
Trolli Schmittlauch 2022-05-17 18:34:57 +02:00
parent 8c50e3a074
commit 7fcba96288
1 changed files with 1 additions and 1 deletions

View File

@ -395,7 +395,7 @@ in
COMPLETION_WAITING_DOTS="true"
### Fix slowness of pastes with zsh-syntax-highlighting.zsh
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`?
}