From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 535646DE0A43 for ; Wed, 16 Jan 2019 18:11:45 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.003 X-Spam-Level: X-Spam-Status: No, score=-0.003 tagged_above=-999 required=5 tests=[AWL=-0.002, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DBxlDzDYxWu5 for ; Wed, 16 Jan 2019 18:11:43 -0800 (PST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id C1A766DE0361 for ; Wed, 16 Jan 2019 18:11:43 -0800 (PST) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1gjx9g-0001hs-Lr; Wed, 16 Jan 2019 21:11:40 -0500 Received: (nullmailer pid 28394 invoked by uid 1000); Thu, 17 Jan 2019 02:11:38 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 1/2] configure: don't use special variable BASH Date: Wed, 16 Jan 2019 22:11:31 -0400 Message-Id: <20190117021132.28327-2-david@tethera.net> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190117021132.28327-1-david@tethera.net> References: <20190117021132.28327-1-david@tethera.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 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: Thu, 17 Jan 2019 02:11:45 -0000 bash, in it's wisdom, sets that variable when invoked as /bin/sh, but then doesn't act as bash, at least not to the degree we need to run scripts. --- configure | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure b/configure index b2200be0..ea22587b 100755 --- a/configure +++ b/configure @@ -53,7 +53,7 @@ fi # Set several defaults (optionally specified by the user in # environment variables) -BASH=${BASH:-bash} +BASHCMD=${BASHCMD:-bash} PERL=${PERL:-perl} CC=${CC:-cc} CXX=${CXX:-c++} @@ -560,13 +560,13 @@ else fi printf "Checking for bash... " -if command -v ${BASH} > /dev/null; then +if command -v ${BASHCMD} > /dev/null; then have_bash=1 - bash_absolute=$(command -v ${BASH}) + bash_absolute=$(command -v ${BASHCMD}) printf "Yes (%s).\n" "$bash_absolute" else have_bash=0 - printf "No. (%s not found)\n" "${BASH}" + printf "No. (%s not found)\n" "${BASHCMD}" fi printf "Checking for perl... " -- 2.20.1