Y
Hacker News
new
|
ask
|
show
|
jobs
by
Calzifer
1381 days ago
Because zsh has usually the url-quote-magic feature enabled which automatically escapes all special characters typed or pasted if the current argument is identified as URL.
1 comments
jwilk
1381 days ago
Most likely it escapes enough to prevent code execution, but last time I tried it didn't escape
all
special characters out of the box:
https://news.ycombinator.com/item?id=29071196
link
turtleman1338
1381 days ago
$ also gets escaped automatically for me if pasted
link
https://news.ycombinator.com/item?id=29071196