From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:56021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKGLV-0006W5-Lt for qemu-devel@nongnu.org; Wed, 11 May 2011 16:49:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QKGLU-000832-62 for qemu-devel@nongnu.org; Wed, 11 May 2011 16:49:25 -0400 Received: from fmmailgate01.web.de ([217.72.192.221]:46418) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QKGLT-00082f-Nr for qemu-devel@nongnu.org; Wed, 11 May 2011 16:49:24 -0400 Message-ID: <4DCAF63E.9060905@web.de> Date: Wed, 11 May 2011 22:49:02 +0200 From: Jan Kiszka MIME-Version: 1.0 References: In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig2FB2CB9D160EA4A302BFEDA4" Sender: jan.kiszka@web.de Subject: Re: [Qemu-devel] adding search to dhcp List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Markus Armbruster , Carl Karsten , qemu-devel This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2FB2CB9D160EA4A302BFEDA4 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 2011-05-11 18:08, Stefan Hajnoczi wrote: > On Wed, May 11, 2011 at 4:22 PM, Carl Karsten = wrote: >> On Wed, May 11, 2011 at 6:01 AM, Markus Armbruster = wrote: >>> Stefan Hajnoczi writes: >>> >>>> On Tue, May 10, 2011 at 6:40 PM, Carl Karsten wrote: >>>>> I would expect the syntax to look like this: >>>>> >>>>> qemu -hda 1.qcow2 -net nick -net >>>>> user,hostname=3Dqemu,search=3Dexample.com,sales.example.com >>>> >>>> Comma escaping is needed but it seems like a reasonable feature to m= e. >>> >>> Comma escaping is ugly: >>> -net user,hostname=3Dqemu,search=3Dexample.com,,sales.example.com >>> >>> Could we have multiple search options instead? Like this: >>> -net user,hostname=3Dqemu,search=3Dexample.com,search=3Dsales.example= =2Ecom >>> >> >> How about: >> >> -net user,hostname=3Dqemu,search=3D"example.com,sales.example.com" >=20 > That does not work the way you'd expect: > $ echo asdf=3Dasdf,ok=3D"this,is,a,test" > asdf=3Dasdf,ok=3Dthis,is,a,test >=20 > Also, let's not get into the business of matching quotes and passing > them escaped on the shell. That's just as ugly as escaping commas and > more work. >=20 > I think the two options are using QEMU's typical comma escaping ',,' > or specifying the option multiple times. I'd go with comma escaping > for consistency. I'm not aware of any other option in QEMU that is > specified multiple times. -net user,hostfwd=3D...,hostfwd=3D... Let's got for multiple specification, ',,' is just ugly IMHO. Jan --------------enig2FB2CB9D160EA4A302BFEDA4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.15 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/ iEYEARECAAYFAk3K9j4ACgkQitSsb3rl5xQQVACgp7a3nTL3jKxaUQ0uc683zTC5 3EcAnjW+GFKMYeXUbtcj2tMjRGNX87AR =QJYr -----END PGP SIGNATURE----- --------------enig2FB2CB9D160EA4A302BFEDA4--