qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC PATCH] vl.c: add -semihosting-config "arg" sub-arg


From: Peter Maydell
Subject: Re: [Qemu-devel] [RFC PATCH] vl.c: add -semihosting-config "arg" sub-argument
Date: Tue, 21 Apr 2015 17:23:37 +0100

On 21 April 2015 at 17:21, Liviu Ionescu <address@hidden> wrote:
>
>> On 21 Apr 2015, at 18:55, Peter Maydell <address@hidden> wrote:
>>
>> On 21 April 2015 at 16:14, Liviu Ionescu <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]