6 ms·
this reminds me that zsh auto-escaping \$ and \& on basically all my shells messes up pasting curl commands and other payloads... or doesn't and still looks the
by pluto_modadic 3y ago
this reminds me that zsh auto-escaping \$ and \& on basically all my shells messes up pasting curl commands and other payloads... or doesn't and still looks them up in weird subshells.
no such problems in bash.
- arp242 3y ago> zsh auto-escaping \$ and \& on basically all my shells messes up pasting curl commands This must be something you configured, or added in a plugin or something, because it's not the default behaviour, and AFAIK it's also not a simple setting.
- diarrhea 3y agoAs far as I remember, if you put quote(s) first, then paste into them, this doesn’t happen. That would then be strictly better, as zsh catches the unquoted special characters, preventing disaster, but doesn’t interfere if quoting is in place.
- Brian_K_White 3y agoMaking the assumption that I'm not intentionally pasting a command is wrong. So if it doesn't do that by default, that's good.
- kergonath 3y agoThat’s very weird. I paste commands all the time without any issue like that. Is it a setting you changed, or some strange behaviour of your terminal emulator?