On 20 May 2015 at 15:31, Liviu Ionescu <i...@livius.net> wrote: > >> On 20 May 2015, at 17:18, Peter Maydell <peter.mayd...@linaro.org> wrote: >> >> PS: the glib function g_strjoinv("", null_terminated_string_array) >> is probably better than reimplementing the string-concatenation >> wheel. > > I'm not familiar with g_strjoinv(), but the args concatenate logic > should protect args containing spaces with quotes or apostrophes.
It should just concatenate the arguments, putting spaces between them. The ARM semihosting API doesn't mandate any kind of quoting, and we can't know what the guest application expects, so the user is going to have to supply any necessary quotes. -- PMM