Ash eval wierdness
Bob Dunlop
bob.dunlop at xyzzy.org.uk
Wed May 25 15:40:17 UTC 2011
Most of the responses didn't spot the spaces in your parameters which
I expect is causing most of your problems.
How's this for a solution if you have the parameters in "file".
eval $(sed -n -e 's/=\(.*\)/="\1"/p' < file)
The sed does the equivalent of your grep and individual echo/seds
echoing the parameters with quotes to be evaluated in the parent shell.
Of course " in the file will cause problems and a whole host of other
things could lead to nasty security holes, but then you know that.
--
Bob Dunlop
More information about the busybox
mailing list