Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gkaM2-0001tF-LA for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Jan 2019 20:03:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gkaLy-0001Qn-GB for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Jan 2019 20:02:58 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gkaLy-0001Is-99 for pgsql-hackers@lists.postgresql.org; Fri, 18 Jan 2019 20:02:58 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gkaLu-0001rg-Ii for pgsql-hackers@postgresql.org; Fri, 18 Jan 2019 20:02:56 +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 x0IK2kpk029027; Fri, 18 Jan 2019 15:02:46 -0500 From: Tom Lane To: Alvaro Herrera cc: =?utf-8?B?UmHDumwgTWFyw61uIFJvZHLDrWd1ZXo=?= , PostgreSQL mailing lists Subject: Re: [PATCH] pgbench tap tests fail if the path contains a perl special character In-reply-to: <201901181927.sbv5o72uu4cc@alvherre.pgsql> References: <201901181927.sbv5o72uu4cc@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Fri, 18 Jan 2019 16:27:38 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29025.1547841766.1@sss.pgh.pa.us> Date: Fri, 18 Jan 2019 15:02:46 -0500 Message-ID: <29026.1547841766@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: >>> This does not look right to me: glob has a different set of special >>> characters than regexes, no? > Perhaps you can do > @quoted = map { quotemeta($_) } @logs; Actually, playing with it here, it seems that quotemeta() quotes anything that's a special character for either purpose (in fact, it looks like it quotes anything that's not alphanumeric). So the patch as given should work. regards, tom lane