From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MnwGS-000869-He for qemu-devel@nongnu.org; Wed, 16 Sep 2009 11:17:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MnwGS-00085n-1x for qemu-devel@nongnu.org; Wed, 16 Sep 2009 11:17:48 -0400 Received: from [199.232.76.173] (port=37265 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnwGR-00085h-UX for qemu-devel@nongnu.org; Wed, 16 Sep 2009 11:17:47 -0400 Received: from fg-out-1718.google.com ([72.14.220.156]:49815) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MnwGR-0006Bp-L5 for qemu-devel@nongnu.org; Wed, 16 Sep 2009 11:17:47 -0400 Received: by fg-out-1718.google.com with SMTP id e21so1058881fga.10 for ; Wed, 16 Sep 2009 08:17:45 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <200909161532.48010.pascal.erb@gruo.de> References: <200909161532.48010.pascal.erb@gruo.de> Date: Wed, 16 Sep 2009 17:17:45 +0200 Message-ID: <761ea48b0909160817q2ac0b735n834834972552015@mail.gmail.com> Subject: Re: [Qemu-devel] version command line option From: Laurent Desnogues Content-Type: text/plain; charset=ISO-8859-1 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pascal Erb Cc: qemu-devel@nongnu.org On Wed, Sep 16, 2009 at 3:32 PM, Pascal Erb wrote: > But it seems to be > impossible to do something like > > qemu --version > > to find out some version information. Since this should be easy to implement, > I'd do this. Any informations how to proceed? I came up with this but that looks overly complex and fragile :-) qemu-x86_64 -h | head -1 | awk '{ print $3 }' | sed 's/,$//' Laurent