From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MR6mS-000402-NE for qemu-devel@nongnu.org; Wed, 15 Jul 2009 11:52:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MR6mO-0003t8-2r for qemu-devel@nongnu.org; Wed, 15 Jul 2009 11:52:28 -0400 Received: from [199.232.76.173] (port=54929 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MR6mN-0003so-Lm for qemu-devel@nongnu.org; Wed, 15 Jul 2009 11:52:23 -0400 Received: from mx20.gnu.org ([199.232.41.8]:38637) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MR6mN-00057W-86 for qemu-devel@nongnu.org; Wed, 15 Jul 2009 11:52:23 -0400 Received: from mail.codesourcery.com ([65.74.133.4]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MR6mL-0002M9-Vh for qemu-devel@nongnu.org; Wed, 15 Jul 2009 11:52:22 -0400 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH] rev5: support colon in filenames Date: Wed, 15 Jul 2009 16:52:17 +0100 References: <1245862739.6278.7.camel@localhost> <4A5DF252.50408@us.ibm.com> In-Reply-To: <4A5DF252.50408@us.ibm.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200907151652.19295.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Kevin Wolf , kvm-devel , linuxram@us.ibm.com, qemu-devel@nongnu.org, Blue Swirl , Jan Kiszka On Wednesday 15 July 2009, Anthony Liguori wrote: > Blue Swirl wrote: > > I bet this won't compile on win32. > > > > Instead of this (IMHO doomed) escape approach, maybe the filename > > parameter could be specified as the next argument, for example: > > -hda format=qcow2,blah,blah,filename_is_next_arg -hda "filename with > > funky characters like ',' ':' & '!'" > > -drive name=hda,if=ide,cache=off -hda foo.img > -drive name=vda,if=virtio,cache=writeback -vda foo.img > -drive name=sdb,if=scsi,unit=1 -sdb boo.img > > But Paul has long objected to having -vda or -sda syntaxes. I do agree > though that the most sane thing to do is to make the filename an > independent argument. I dislike implicit ordering of arguments even less. Having -foo -bar behave differently to -bar -foo is bad. We already have this a bit for things like -net, but splitting something into two as a parsing hack seems really lame. How about -drive args=whatever,unparsed_name=bah Where unparsed_name is defined to be the last argument, and blah is interpreted literally. Paul