Hi!
Is there a bulletproof way to parse configuration files using bash?
Layout:
(spaces)
# comments...
var1="something"
# more comments...
var2="something else"
var3="Some
plain text
also includes spaces and empty lines
..."
(spaces)
How can I read an untrusted config file while preventing all kinds of
code execution from it?
Most competent on that question appeared:
http://wiki.bash-hackers.org/howto/conffile
"This filter only allows NAME=VALUE and comments in the file, though it
doesn't prevent all methods of executing code. I will address that
later." - This later never happened or I failed to find it.
Cheers,
adrelanos