On 21 April 2015 at 17:21, Liviu Ionescu <i...@livius.net> wrote:
>
>> On 21 Apr 2015, at 18:55, Peter Maydell <peter.mayd...@linaro.org> wrote:
>>
>> On 21 April 2015 at 16:14, Liviu Ionescu <i...@livius.net> wrote:
>>> if you insist on the arg= solution, could you be so kind and
>>> provide a bash script wrapper that passes all arguments ($@)
>>> using your syntax?
>>
>>
>> ... bashisms ... pure POSIX shell
>
> do these scripts properly handle args containing spaces or embedded 
> apostrophes/quotes?

Yes. Also arguments containing newlines. I tested using a trivial
C program which prints out what it received:
#include <stdio.h>

int main(int argc, char **argv) {
    int i;

    for (i = 0; i < argc; i++) {
         printf("arg %d: >>>%s<<<\n", i, argv[i]);
    }
    return 0;
}

-- PMM

Reply via email to