From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ILQOw-0007hM-7U for qemu-devel@nongnu.org; Wed, 15 Aug 2007 17:27:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ILQOu-0007gK-C3 for qemu-devel@nongnu.org; Wed, 15 Aug 2007 17:27:37 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILQOu-0007g9-1Z for qemu-devel@nongnu.org; Wed, 15 Aug 2007 17:27:36 -0400 Received: from gate.crashing.org ([63.228.1.57]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ILQOt-0007yF-LE for qemu-devel@nongnu.org; Wed, 15 Aug 2007 17:27:35 -0400 In-Reply-To: <46C15DCE.1000205@bull.net> References: <59abf66e0708092155t2e3cd5o32f23c018bed65af@mail.gmail.com> <46BC8C18.6020108@codemonkey.ws> <46BC9CDB.3080900@qumranet.com> <46BCB1DA.6060102@codemonkey.ws> <46BCBF73.5060406@qumranet.com> <46BCC666.6050406@codemonkey.ws> <59abf66e0708101841i76e26a35vcbc8df14b21f1ac0@mail.gmail.com> <20070813193927.GA21215@networkno.de> <46C15DCE.1000205@bull.net> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <1dbd1c6c19219b2e9c037189a19f1fbd@kernel.crashing.org> Content-Transfer-Encoding: 7bit From: Segher Boessenkool Subject: Re: [kvm-devel] [Qemu-devel] Re: Storing command line options in images Date: Wed, 15 Aug 2007 23:26:47 +0200 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laurent Vivier Cc: kvm-devel@lists.sourceforge.net, qemu-devel@nongnu.org >>> When I read Avi's TODO, I basically thought about getting rid of the >>> long command lines I had to store in scripts. I wanted to write that >>> command line once, and then forgetting about it, until I needed to >>> change it. >> >> Instead of inventing great and wonderfully complicated schemes, the >> most sensible way I can think of is to recycle a feature which is now >> implemented in the GNU toolchain, and apparently stems from Windows: >> >> qemu @qemu.cfg >> >> where qemu.cfg is a file which contains the command line arguments. >> (This is also low-maintenance, as it allows to re-use the existing > > IMHO, it should be implemented at the shell level, not qemu level, > like "*" is. The shell _does_ implement it: qemu `cat qemu.cfg` :-) If you want "@" anyway, you can pick up the code from libiberty (or just build with libiberty). Segher