3
I’m trying to pass a password as parameter the password uses numbers after char !
example:
root@LinDom:~# senha="teste!123"
senha="testevim /etc/hosts"
root@LinDom:~#
root@LinDom:~# echo ${senha}
testevim /etc/hosts
root@LinDom:~#
How do I make an escape from char !
?
I wish my result after the echo ${senha}
were teste!123
See if this is it http://superuser.com/a/301330/162728
– Guilherme Nascimento
That’s right @Guilhermenascimento vlw
– SneepS NinjA
password='test! 123' does not work?
– Denis Rudnei de Souza
@Denisrudneidesouza tested the way you typed there in the example the result
– SneepS NinjA
@Denisrudneidesouza, sorry I had not noticed that you made reference with the simple quotes, it worked yes, thank you!
– SneepS NinjA
@Sneepsninja of good, happens
– Denis Rudnei de Souza