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 1fh8nx-0001Rr-Fs for pgsql-hackers@arkaria.postgresql.org; Sun, 22 Jul 2018 07:29:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fh8nv-0002Yt-44 for pgsql-hackers@arkaria.postgresql.org; Sun, 22 Jul 2018 07:29:19 +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 1fh8nu-0002Yg-Li for pgsql-hackers@lists.postgresql.org; Sun, 22 Jul 2018 07:29:18 +0000 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fh8nm-0003QL-VQ for pgsql-hackers@postgresql.org; Sun, 22 Jul 2018 07:29:13 +0000 Received: by mail-pg1-x529.google.com with SMTP id y5-v6so10035675pgv.1 for ; Sun, 22 Jul 2018 00:29:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=197ouCn46Se45BiLPp1zDq4Rg/Xbf4OvY5qzhU2W/zM=; b=DnQCsrZR7XaC2KDLrThkDOQuI8zx8T1supaSmy0dQI67oVJFH0lyX4g0lMjm+spS0T IZ/CitqyTywdSZZ7KdBknMkygMyOwaSRG/a7AkEzMH+DSd8t8P3vG8W32tugYqcCYlNd TbvXSgDJx3/wUPq5wBjzGungx0hUznNwjy7Bc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=197ouCn46Se45BiLPp1zDq4Rg/Xbf4OvY5qzhU2W/zM=; b=L5hXjHYj3FQWHn3Y5gzKkN6lxlm3JIQSgfCsCbDlRywfzu7ziEDyrqNjmkzC5wYb/G 5U/RPjyTXmcfuD3wVg7XKWT5mxU6M6v9KXmSmy8xKmbR8j9gzz+fcWaEjOQRGw4pXGk5 bcx3NenmOdmFVlPIO2HGXeRlM7Sw2STq+a5/nVinptYT5H94f2uMnkoB30kt8WQv8IN0 ttcmNEI+7cQvwPWAAg6ssffiTvbEtPuOR2lDOP8OVjbop3l6rAn9378KQATzF5RBVtsr hgaFaYURRWK3X3jjAM6Ed48eZ94yLOKTN/pSWTHKBZ4fR0Ri3hqADZVSBFBubcZmuX5J ZepQ== X-Gm-Message-State: AOUpUlFEV9qpLT4bh4jlll6kyibSmHjggnR7jezDnYgcEV88DEzH4HJy qLoeVUrh2S7siajmU83YynYwEGp2hu0= X-Google-Smtp-Source: AAOMgpeV93DdpFrdT90xbjfpaWzMWZWKb4q4WrdeH2/9XF4dK5IU3rwpxzJv9J5KJUzMbq1ARy2UEg== X-Received: by 2002:a62:5a01:: with SMTP id o1-v6mr8611823pfb.0.1532244548249; Sun, 22 Jul 2018 00:29:08 -0700 (PDT) Received: from rfd.leadboat.com (c-73-158-248-138.hsd1.ca.comcast.net. [73.158.248.138]) by smtp.gmail.com with ESMTPSA id k26-v6sm16809753pfb.167.2018.07.22.00.29.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Jul 2018 00:29:07 -0700 (PDT) Date: Sun, 22 Jul 2018 07:29:04 +0000 From: Noah Misch To: Tom Lane Cc: Victor Wagner , pgsql-hackers Subject: Re: Non-portable shell code in pg_upgrade tap tests Message-ID: <20180722072904.GA3951499@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20015.1532099353@sss.pgh.pa.us> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, Jul 20, 2018 at 11:09:13AM -0400, Tom Lane wrote: > Victor Wagner writes: > > Tom Lane wrote: > >> Please send a patch. Most of us do not have access to old shells > > > Here it goes. Previous letter was written before fixed tests were > > completed, because this old machine is slow. > > Thanks. Will check on my own dinosaurs, and push if I don't find > a problem. I'd say the right way to fix this is the one specified in https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/The-Make-Macro-SHELL.html, in particular: Using @SHELL@ means that your makefile will benefit from the same improved shell, such as bash or ksh, that was discovered during configure, so that you aren't fighting two different sets of shell bugs between the two contexts. The Solaris 10 /bin/sh can't even run most of "configure", but Solaris 10 also provides /bin/ksh and /usr/xpg4/bin/sh with the usual modern features. ("configure" works on Solaris 10 by finding a good shell and re-execing itself.) Maintaining shell scripts to an even lower common denominator than Autoconf would be a good deal less reliable.