Re: [PATCH] pgbench tap tests fail if the path contains a perlspecial character - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: [PATCH] pgbench tap tests fail if the path contains a perlspecial character
Date
Msg-id 201901181927.sbv5o72uu4cc@alvherre.pgsql
Whole thread Raw
In response to Re: [PATCH] pgbench tap tests fail if the path contains a perlspecial character  (Raúl Marín Rodríguez <rmrodriguez@carto.com>)
Responses Re: [PATCH] pgbench tap tests fail if the path contains a perl special character  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 2019-Jan-18, Raúl Marín Rodríguez wrote:

> Hi,
> 
> > Fun.  But is that really the only place that fails?
> 
> Yes, other than this it builds flawlessly.
> 
> > This does not look right to me: glob has a different set of special
> > characters than regexes, no?
> 
> The issue itself manifests in the grep call, not in glob, but I tried
> using `quotemeta` only for grep without success (probably because I didn't
> know how to properly call `quotemeta` over @logs.

Perhaps you can do
   @quoted = map { quotemeta($_) } @logs;

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Vik Fearing
Date:
Subject: Re: [HACKERS] REINDEX CONCURRENTLY 2.0
Next
From: Mitar
Date:
Subject: Re: Feature: temporary materialized views