Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fhJUX-0000z2-RC for pgsql-hackers@arkaria.postgresql.org; Sun, 22 Jul 2018 18:54:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fhJUV-0005PM-Pu for pgsql-hackers@arkaria.postgresql.org; Sun, 22 Jul 2018 18:53:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fhJUV-0005PF-JA for pgsql-hackers@lists.postgresql.org; Sun, 22 Jul 2018 18:53:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fhJUS-0001Ny-GT for pgsql-hackers@postgresql.org; Sun, 22 Jul 2018 18:53:59 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w6MIrpaC024718; Sun, 22 Jul 2018 14:53:51 -0400 From: Tom Lane To: Noah Misch cc: Victor Wagner , pgsql-hackers Subject: Re: Non-portable shell code in pg_upgrade tap tests In-reply-to: <20180722173857.GA3998719@rfd.leadboat.com> References: <20180720153820.69e9ae6c@fafnir.local.vm> <17833.1532096747@sss.pgh.pa.us> <20180720175508.07776219@fafnir.local.vm> <20015.1532099353@sss.pgh.pa.us> <20180722072904.GA3951499@rfd.leadboat.com> <6519.1532270763@sss.pgh.pa.us> <20180722173857.GA3998719@rfd.leadboat.com> Comments: In-reply-to Noah Misch message dated "Sun, 22 Jul 2018 10:38:57 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24716.1532285631.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 22 Jul 2018 14:53:51 -0400 Message-ID: <24717.1532285631@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Noah Misch writes: > On Sun, Jul 22, 2018 at 10:46:03AM -0400, Tom Lane wrote: >> The pg_upgrade makefile does in fact use $(SHELL), so it will default t= o >> whatever shell configure used. > It will not, because we don't set $(SHELL) anywhere. $(SHELL) is not @S= HELL@. > In our makefiles, $(SHELL) is always /bin/sh, the GNU make default. Oh! Hm, I wonder whether we shouldn't do that, ie add SHELL =3D @SHELL@ to Makefile.global.in. A quick trawl of the buildfarm logs says most of our animals compute SHELL =3D /bin/sh anyway, and so would be unaffected. There's a sizable population that find /bin/bash though, and one active critter that finds /bin/ksh. regards, tom lane