> On 21 May 2015, at 18:29, Peter Maydell <peter.mayd...@linaro.org> wrote: > > > There's no way to not offer the choice. In your syntax > this would be > --semihosting-cmdline "foo bar baz"
not exactly. in my implementation this would arrive in the guest code as argc=1, argv[0]="foo bar baz", which will be understood as a weird program name. >> ... >> yes, it is making the assumption that the guest code is able to >> process args with embedded spaces. once this accepted, properly >> parsing the quotes and apostrophes is required anyway > > Required by who? It's not in the semihosting API. You > could perfectly well have a guest which required arguments > with spaces to be quoted via <> characters, or which > just treated the whole string as a single element, or > which didn't have any quoting support... I doubt implementations quoting with <> are really in use and have enough value to be a problem. regards, Liviu