相关疑难解决方法(0)

不能在 bash 中使用感叹号 (!)?

我正在尝试使用 curl 命令访问!路径中带有感叹号 ( )的 http url 。例如:

curl -v "http://example.org/!287s87asdjh2/somepath/someresource"
Run Code Online (Sandbox Code Playgroud)

控制台回复bash: ... event not found.

这里发生了什么?逃避感叹号的正确语法是什么?

bash special-characters quoting

148
推荐指数
6
解决办法
13万
查看次数

标签 统计

bash ×1

quoting ×1

special-characters ×1