I want to install 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 to avoid these characters?
Paste it in single quotes:
curlftpfs 'myaccount: mypassword?!@thefptserver.com '
As you find out, the exclamation mark has special meaning in bash : !@thefptserver.com means the latest command that started with @thefptserver.com .
bash
!@thefptserver.com
@thefptserver.com
Bash is looking for the latest team starting with @theftpsever.com in your history. This is called "Expanding Stories" and can be really helpful. In this case, of course, this is not so.
@theftpsever.com
You can escape ! using a backslash, but itβs more common to use single quotes to stop a shell attempt:
!
Source: https://habr.com/ru/post/906579/More articles:CSS3 background-size: the cover does not make the image vertical - cssCSS3 background size - can I guarantee coverage? - cssdouble comparison matlab - comparisonLimit value in Tkinter login widgets - pythonHow to insert only some specified characters into tkinter input widget - pythonJava time tracking: using currentTimeMills () - javaMaven Dependencies for JBoss 7.1 EJB Client - mavenUnable to access EntityObject type through RIA services - c #Disable horizontal "scrolling" of text input? - htmlHow to read Stream and reset its position to zero, even if stream.CanSeek == false - c #All Articles