Content-Length: 263001 | pFad | http://github.com/postgrespro/postgres/commit/015061690c6526ff9f9f7af2940e1c1541654b68

CE (Blind) fix Perl splitting of strings at newlines · postgrespro/postgres@0150616 · GitHub
Skip to content

Commit 0150616

Browse files
committed
(Blind) fix Perl splitting of strings at newlines
I forgot that Windows represents newlines as \r\n, so splitting a string at /\s/ creates additional empty strings. Let's rewrite that as /\s+/ to see if that avoids those. (There's precedent for using that pattern on Windows in other scripts.) Previously: 91bdf49, 8ed428d, 650b967. Per buildfarm, via Tom Lane. Discussion: https://postgr.es/m/3144460.1615860259@sss.pgh.pa.us
1 parent 15639d5 commit 0150616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/modules/libpq_pipeline/t/001_libpq_pipeline.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
my ($out, $err) = run_command(['libpq_pipeline', 'tests']);
1818
die "oops: $err" unless $err eq '';
19-
my @tests = split(/\s/, $out);
19+
my @tests = split(/\s+/, $out);
2020

2121
for my $testname (@tests)
2222
{

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/015061690c6526ff9f9f7af2940e1c1541654b68

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy