qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] iotests: Quote $cmd in _send_qemu_cmd


From: Max Reitz
Subject: Re: [PATCH] iotests: Quote $cmd in _send_qemu_cmd
Date: Tue, 15 Dec 2020 16:58:29 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0

On 15.12.20 16:49, Kevin Wolf wrote:

[...]

Ah, looks like you don't even need to quote it like cmd="$1"? Maybe I
should learn bash sometime...

No, normally you don’t, which is the reason why the "cmd=${$@: x:y}" line wasn’t quoted so far. (Probably a bug in bash that was then fixed in 5.1.)

But yes, this is what I was thinking of.

OK, I’ll cook up a v2 then.

Max




reply via email to

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