From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US6u2-0005Bw-Mm for qemu-devel@nongnu.org; Tue, 16 Apr 2013 10:30:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1US6m4-00062T-3b for qemu-devel@nongnu.org; Tue, 16 Apr 2013 10:22:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:1340) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1US6Iz-00044X-79 for qemu-devel@nongnu.org; Tue, 16 Apr 2013 09:52:17 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r3GDqGwh012147 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 16 Apr 2013 09:52:16 -0400 From: Markus Armbruster References: <1366105701-7968-1-git-send-email-kwolf@redhat.com> <516D437E.7000907@redhat.com> <20130416131611.GA25650@stefanha-thinkpad.redhat.com> Date: Tue, 16 Apr 2013 15:52:14 +0200 In-Reply-To: <20130416131611.GA25650@stefanha-thinkpad.redhat.com> (Stefan Hajnoczi's message of "Tue, 16 Apr 2013 15:16:11 +0200") Message-ID: <87bo9evb01.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] qemu-iotests: Fix _filter_qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , qemu-devel@nongnu.org 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.