Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lL9HN-0006LI-WD for pgsql-hackers@arkaria.postgresql.org; Sat, 13 Mar 2021 18:46:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lL9HM-0005lB-I7 for pgsql-hackers@arkaria.postgresql.org; Sat, 13 Mar 2021 18:46:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lL9HM-0005j9-3W for pgsql-hackers@lists.postgresql.org; Sat, 13 Mar 2021 18:46:24 +0000 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lL9HH-0000L9-1m for pgsql-hackers@postgresql.org; Sat, 13 Mar 2021 18:46:23 +0000 Received: by mail-pl1-x633.google.com with SMTP id w7so9929071pll.8 for ; Sat, 13 Mar 2021 10:46:18 -0800 (PST) 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=LkU/w00G7+NcOGoXhgsfu3jxJeH9b3T0NRVTiyQcV6A=; b=IkIBREp2TD/Tc5HjdFUOsVHcxZBxMyIjn/Atoq8Jgdnx5U8ZXqJam5TSy9Ox4+uluD vq4xu8DpuBOWVaN2xgiFihW6zOuMU7JX8MXpn3RT932wD2C9yjQzhjlV5HMDU7Oex6rG eIHMFmLlwuJ7j69hFM6VP9U63pWK4D2ZzxUbs= 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=LkU/w00G7+NcOGoXhgsfu3jxJeH9b3T0NRVTiyQcV6A=; b=fKIt0qAONYbpo6hmIRZbO1KmDgHlSzfNRAyLpMNDr6gyHm5lP3v1bNPKSTjQ17Yp8q dg6u0PVvaPKmfbKaEyYJ28fOX8IduTfvVcOWNvNFq8LoB3IOLhVhfoMWcR8sgiub9s9S L9a6N/SMg7jGEVRPHb//zOwjWyA/jbrEXIKTVR/BiUG/4Zbbp28/WG0O4bTA5JcmsNuV k2Cl8dHccdy707KBOthPvCRv+T0NiAHgXpQ7j526bU+elrlMCbJLdU8O6kLuRVWv+KI5 5l2zHUej+q8kcWTuYpayBaVur7x5TT7/4OWHV1VrAItMNY4ma/00GwyJEssH+g0Jj2c7 RJ+Q== X-Gm-Message-State: AOAM530qUzsa0DRgW9zXZtUGlERLlZyV9rz84iA7aUCLfIx9ApNZVRY5 Jz4CWEeg01uy/MaVjhg4T4sB8g== X-Google-Smtp-Source: ABdhPJx0mq5DPWqm7NmFcD0dwOExabdmLR6YGjN2WE8DKv314+6ON0PEvQkxpdi2znR+UCgScDdmtw== X-Received: by 2002:a17:902:b942:b029:e4:87be:be8c with SMTP id h2-20020a170902b942b02900e487bebe8cmr4148865pls.81.1615661176917; Sat, 13 Mar 2021 10:46:16 -0800 (PST) Received: from rfd.leadboat.com ([2600:1702:a20:5750::46]) by smtp.gmail.com with ESMTPSA id w17sm6166354pfu.29.2021.03.13.10.46.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Mar 2021 10:46:15 -0800 (PST) Date: Sat, 13 Mar 2021 10:46:12 -0800 From: Noah Misch To: Mark Dilger Cc: Robert Haas , Peter Geoghegan , Thomas Munro , Tom Lane , "Andrey M. Borodin" , Stephen Frost , Michael Paquier , Amul Sul , Dilip Kumar , Andres Freund , PostgreSQL-development Subject: Re: pg_amcheck contrib application Message-ID: <20210313184612.GA3195145@rfd.leadboat.com> References: <9E76E46A-48B2-4869-BD0C-422204C1F767@enterprisedb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Mar 12, 2021 at 05:04:09PM -0800, Mark Dilger wrote: > > On Mar 12, 2021, at 3:24 PM, Mark Dilger wrote: > > > > and the second deals with an apparent problem with IPC::Run shell expanding an asterisk on some platforms but not others. That second one, if true, seems like a problem with scope beyond the pg_amcheck project, as TestLib::command_checks_all uses IPC::Run, and it would be desirable to have consistent behavior across platforms. > > One of pg_amcheck's regression tests was passing an asterisk through > > TestLib's command_checks_all() command, which gets through to > > pg_amcheck without difficulty on most platforms, but appears to get > > shell expanded on Windows (jacana) and AIX (hoverfly). For posterity, I can't reproduce this on hoverfly. The suite fails the same way at f371a4c and f371a4c^. More-recently (commit 58f5749), the suite passes even after reverting f371a4c. Self-contained IPC::Run usage also does not corroborate the theory: [nm@power8-aix 8:0 2021-03-13T18:32:23 clean 0]$ perl -MIPC::Run -e 'IPC::Run::run "printf", "%s\n", "*"' * [nm@power8-aix 8:0 2021-03-13T18:32:29 clean 0]$ perl -MIPC::Run -e 'IPC::Run::run "sh", "-c", "printf %s\\\\n *"' COPYRIGHT GNUmakefile.in HISTORY Makefile README README.git aclocal.m4 config configure configure.ac contrib doc src > there is a similar symptom caused by an unrelated problem > Subject: [PATCH v3] Avoid use of non-portable option ordering in > command_checks_all(). On a glibc system, "env POSIXLY_CORRECT=1 make check ..." tests this.