Bash variable escaping
Hi List,
I've a problem with a script. It's a wrapper for a program which uses
for example '*' as a parameter. It could also be 'foobar*' and I want
the script user to type in the desired parameter via "dialog
--inputbox".
The parameter is set correctly: "echo ${parameter}" gave me exactly what
I expect to see ('*'). Unfortunately when the parameter is passed to the
program it looks like this (according to "set +x"):
/usr/bin/salt ''\''*'\''' state.highstate -v test=True -b 10
How can I avoid that?
Thanks in advance.
Bye for now.
Reply to: