From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:48877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US7V3-0007oc-Ck for qemu-devel@nongnu.org; Tue, 16 Apr 2013 11:08:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1US7Uy-0000GK-JZ for qemu-devel@nongnu.org; Tue, 16 Apr 2013 11:08:49 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43245) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US7Uy-0000G1-Az for qemu-devel@nongnu.org; Tue, 16 Apr 2013 11:08:44 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r3GF8hTi029466 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 16 Apr 2013 11:08:43 -0400 Date: Tue, 16 Apr 2013 17:08:42 +0200 From: Stefan Hajnoczi Message-ID: <20130416150842.GA31627@stefanha-thinkpad.redhat.com> References: <1366105701-7968-1-git-send-email-kwolf@redhat.com> <516D437E.7000907@redhat.com> <20130416131611.GA25650@stefanha-thinkpad.redhat.com> <87bo9evb01.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87bo9evb01.fsf@blackfin.pond.sub.org> Subject: Re: [Qemu-devel] [PATCH] qemu-iotests: Fix _filter_qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: Kevin Wolf , qemu-devel@nongnu.org On Tue, Apr 16, 2013 at 03:52:14PM +0200, Markus Armbruster wrote: > Stefan Hajnoczi writes: > > [...] > > The problem with the POSIX shell string replacement is that the syntax > > is horrible. I can never remember what ${%}, ${%%}, ${#} and > > %{##} do. $(basename $QEMU_PROG) is clear (although it doesn't handle > > spaces in the filename!). > > Here's how I cope. # is left of % my keyboard. # matches "on the > left", % "on the right". #/% are "short" and pick the shortest matching > pattern. ##/%% are "long" and pick the longest matching pattern. Nice :). Stefan