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 376356DE02DA for ; Sat, 24 Sep 2016 06:03:14 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.007 X-Spam-Level: X-Spam-Status: No, score=-0.007 tagged_above=-999 required=5 tests=[AWL=0.004, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 gduInZW6ijdP for ; Sat, 24 Sep 2016 06:03:13 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id A7DBE6DE02C9 for ; Sat, 24 Sep 2016 06:03:13 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1bnmbd-00033L-D2; Sat, 24 Sep 2016 09:03:01 -0400 Received: (nullmailer pid 3962 invoked by uid 1000); Sat, 24 Sep 2016 13:03:09 -0000 From: David Bremner To: Tomi Ollila , notmuch@notmuchmail.org Cc: tomi.ollila@iki.fi Subject: Re: [PATCH] test: test-lib.sh: use $BASH instead of ${SHELL-sh} to relaunch In-Reply-To: <1474721007-15011-1-git-send-email-tomi.ollila@iki.fi> References: <1474721007-15011-1-git-send-email-tomi.ollila@iki.fi> Date: Sat, 24 Sep 2016 10:03:09 -0300 Message-ID: <87intlcuwi.fsf@zancas.localnet> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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, 24 Sep 2016 13:03:14 -0000 Tomi Ollila writes: > In case of the test script is to be relaunced under valgrind, or --tee > is requested, use the $BASH shell variable to locate the command > interpreter. The $SHELL variable is re-set by non-interactive shells > so in case the shell uses some other shell (e.g. zsh) for interactive > use these bash scripts continue to work. This seems to fix the problem I was having. I did notice the test_C function probably needs to be updated to pay attention to valgrind option, but that is more of a feature request than a bug. d