I want to mount an FTP drive, but my FTP password contains "?!".
I enter the command:
curlftpfs myaccount:[email protected]
but it gives me "bash: [email protected]: event not found"
How do I escape those characters?
You can separate user and password from FTP URL/IP using user option below:
curlftpfs -o user='myaccount:mypassword?!' thefptserver.com
I found this option in curlftpfs manual and hope it helps!
Also found the same answer in this link https://superuser.com/questions/269006/curlftpfs-doesnt-work-for-a-username-with-a
Enclose it in single quotes:
curlftpfs 'myaccount:[email protected]'
As you've discovered, the exclamation mark has a special meaning in bash
: [email protected]
stands for the most recent command that started with @thefptserver.com
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With