I want to mount an FTP drive, but my FTP password contains "?!".
I enter the command:
curlftpfs myaccount:mypassword?!@thefptserver.com
but it gives me "bash: !@theftpsever.com: event not found"
How do I escape those characters?
Enclose it in single quotes:
curlftpfs 'myaccount:mypassword?!@thefptserver.com'
As you've discovered, the exclamation mark has a special meaning in bash
: !@thefptserver.com
stands for the most recent command that started with @thefptserver.com
.