Oliver Walsh 69265fcebb Fix running complex command lines via bootstrap_host_exec
This currently uses eval $* which doesn't correctly handle complex args
e.g with complex quoting, subshells etc..

exec "$@" is the correct command to run.

"$@" is special in bash and expands to "$1" "$2" "$3" etc... to pass through
command line args verbatim.  Also exec accepts a list of args while eval
accepts a string.

However fixing it may break command strings that happened to work previously.
So this change deprecates bootstrap_host_exec, replacing it with
bootstrap_host_only_eval and bootstrap_host_only_exec.

Change-Id: I993c3354a3d9fd392fa4fa2e3b5b8ed421487a88
Closes-bug: 1718914
2017-09-22 22:04:07 +01:00
..