I'm trying to use the curl command to access a http url with a exclamation mark (!
) in its path. e.g:
curl -v "http://example.org/!287s87asdjh2/somepath/someresource"
the console replies with bash: ... event not found
.
What is going on here? and what would be the proper syntax to escape the exclamation mark?
"foo!"
not invoke history expansion, but"foo!123"
still does.