From mboxrd@z Thu Jan 1 00:00:00 1970 From: Segher Boessenkool Subject: Re: [Qemu-devel] Re: Storing command line options in images Date: Wed, 15 Aug 2007 23:26:47 +0200 Message-ID: <1dbd1c6c19219b2e9c037189a19f1fbd@kernel.crashing.org> 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" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Thiemo Seufer , qemu-devel-qX2TKyscuCcdnm+yROfE0A@public.gmane.org To: Laurent Vivier Return-path: In-Reply-To: <46C15DCE.1000205-6ktuUTfB/bM@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.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 ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/