Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JCwGR-0003gm-Af for qemu-devel@nongnu.org; Thu, 10 Jan 2008 07:12:03 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JCwGO-0003cL-4s for qemu-devel@nongnu.org; Thu, 10 Jan 2008 07:12:02 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JCwGN-0003cA-SV for qemu-devel@nongnu.org; Thu, 10 Jan 2008 07:11:59 -0500 Received: from ecfrec.frec.bull.fr ([129.183.4.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JCwGN-0004L4-1f for qemu-devel@nongnu.org; Thu, 10 Jan 2008 07:11:59 -0500 Subject: Re: [Qemu-devel] [PATCH] Fix double backslash problem in Windows From: Laurent Vivier In-Reply-To: References: <1199871092.4337.4.camel@frecb07144> <1199873069.4337.20.camel@frecb07144> <1199880481.4337.31.camel@frecb07144> <1199883098.4337.42.camel@frecb07144> <1199957735.4773.22.camel@frecb07144> Date: Thu, 10 Jan 2008 13:12:23 +0100 Message-Id: <1199967143.4773.38.camel@frecb07144> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-Vn1fQVjAyoGS+feqMwJm" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Johannes Schindelin Cc: qemu-devel@nongnu.org --=-Vn1fQVjAyoGS+feqMwJm Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Le jeudi 10 janvier 2008 =C3=A0 11:53 +0000, Johannes Schindelin a =C3=A9cr= it : > Hi, >=20 > On Thu, 10 Jan 2008, Laurent Vivier wrote: >=20 > > Le mercredi 09 janvier 2008 =C3=A0 13:27 +0000, Johannes Schindelin a = =C3=A9crit : > > [...] > > > Besides, it would not be _that_ complicated: > >=20 > > This patch doesn't manage the case where we have comma in filename: > >=20 > > qemu -drive file=3Dmy,file,if=3Dscsi > >=20 > > where filename is "my,file". >=20 > Right. But then, my patch only tried to undo the regression. >=20 > As for the "my,file" problem: you _could_ change the parser so that it=20 > picks up on "-drive if=3Dscsi,file=3Dmy,file" having no "=3D" after the l= ast=20 > comma, but that does not help the case where a file name contains both a=20 > comma and an equal sign. Perhaps the best solution is to put "file=3D" option at the end of aliases, '\0' is marking the end of filename (it is likely the idea of andrzej about special characters). For the case where user uses directly "-drive" perhaps we can just explain in the doc he must put "file=3D" at the of the parameter when he must use ' ', ',','"' or '=3D':=20 qemu -drive if=3Dscsi,bus=3D0,unit=3D6,file=3D"my scsi disk.img" -hda "my i= de0 disk.img" (in this case quotes are managed by the shell) It should ever work. Regards, Laurent --=20 ----------------- Laurent.Vivier@bull.net ------------------ "La perfection est atteinte non quand il ne reste rien =C3=A0 ajouter mais quand il ne reste rien =C3=A0 enlever." Saint Exup=C3=A9ry --=-Vn1fQVjAyoGS+feqMwJm Content-Type: application/pgp-signature; name=signature.asc Content-Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQBHhgun9Kffa9pFVzwRAqHVAJ92HmqFhG5nyhMhWZkpE2Tw/m0XqwCgpWsY Ej5o/mEKor5a73RmyzLc+eU= =mPe2 -----END PGP SIGNATURE----- --=-Vn1fQVjAyoGS+feqMwJm--