Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 6B787431FB6 for ; Sat, 5 Feb 2011 14:59:19 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id keUcKSXPSj+n for ; Sat, 5 Feb 2011 14:59:19 -0800 (PST) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id CB0EA431FB5 for ; Sat, 5 Feb 2011 14:59:18 -0800 (PST) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 2B9883CFEED; Sat, 5 Feb 2011 23:59:18 +0100 (CET) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id oPs0l4m949Bh; Sat, 5 Feb 2011 23:59:16 +0100 (CET) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id 419BF3CFEA1; Sat, 5 Feb 2011 23:59:16 +0100 (CET) Received: from wsheee.2x.cz (unknown [213.29.198.144]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id BAEF215C031; Sat, 5 Feb 2011 23:59:15 +0100 (CET) Received: from wsh by wsheee.2x.cz with local (Exim 4.72) (envelope-from ) id 1Plr63-0007YN-59; Sat, 05 Feb 2011 23:59:15 +0100 From: Michal Sojka To: Thomas Schwinge , notmuch@notmuchmail.org Subject: Re: [PATCH] Shell programming: directories are ``executable'' (that is, searchable), too. In-Reply-To: <1296670629-27711-1-git-send-email-thomas@schwinge.name> References: <1296670629-27711-1-git-send-email-thomas@schwinge.name> User-Agent: Notmuch/0.5-103-g1253785 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Sat, 05 Feb 2011 23:59:15 +0100 Message-ID: <87zkqaozp8.fsf@wsheee.2x.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Thomas Schwinge X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Feb 2011 22:59:19 -0000 On Wed, 02 Feb 2011, Thomas Schwinge wrote: > Signed-off-by: Thomas Schwinge > --- > test/test-lib.sh | 5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-) > > diff --git a/test/test-lib.sh b/test/test-lib.sh > index f536172..3471ead 100755 > --- a/test/test-lib.sh > +++ b/test/test-lib.sh > @@ -815,13 +815,14 @@ EOF > } > > > +# Locate the directory containing the `notmuch' executable we are to use. > find_notmuch_path () > { > dir="$1" > > while [ -n "$dir" ]; do > bin="$dir/notmuch" > - if [ -x "$bin" ]; then > + if [ -f "$bin" -a -x "$bin" ]; then Looks good to me. Thanks. -Michal