From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ykaxu-000074-Pn for qemu-devel@nongnu.org; Tue, 21 Apr 2015 12:24:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ykaxq-0004KF-84 for qemu-devel@nongnu.org; Tue, 21 Apr 2015 12:24:02 -0400 Received: from mail-ig0-f180.google.com ([209.85.213.180]:38630) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ykaxq-0004K3-3p for qemu-devel@nongnu.org; Tue, 21 Apr 2015 12:23:58 -0400 Received: by igbhj9 with SMTP id hj9so19892919igb.1 for ; Tue, 21 Apr 2015 09:23:57 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <576E2CEE-23F3-403C-AB73-83CEA0ACD2F3@livius.net> References: <1427894283-31953-1-git-send-email-leon.alrae@imgtec.com> <9DE872C8-4AE3-48FC-B4A1-61ADE4DB7F32@livius.net> <551CF623.7040506@imgtec.com> <551D086D.9010604@imgtec.com> <551D1BC2.10408@imgtec.com> <1C30C43D-CD89-4EBF-991A-9CC53019ED7B@livius.net> <6D39441BF12EF246A7ABCE6654B023532101BA54@LEMAIL01.le.imgtec.org> <1741D364-48FC-4682-B660-82A5B48F8DE4@livius.net> <55255556.8020504@imgtec.com> <2A76D025-D3C9-4023-B48B-F6870998C99A@livius.net> <553651ED.9080209@imgtec.com> <3CDEFB52-C1C6-4012-AEFA-0630706AAF74@livius.net> <576E2CEE-23F3-403C-AB73-83CEA0ACD2F3@livius.net> From: Peter Maydell Date: Tue, 21 Apr 2015 17:23:37 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [RFC PATCH] vl.c: add -semihosting-config "arg" sub-argument List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liviu Ionescu Cc: "christopher.covington@linaro.org" , Leon Alrae , Matthew Fortune , "qemu-devel@nongnu.org" On 21 April 2015 at 17:21, Liviu Ionescu wrote: > >> On 21 Apr 2015, at 18:55, Peter Maydell wrote: >> >> On 21 April 2015 at 16:14, Liviu Ionescu 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 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