Skip to content

Commit ebf3760

Browse files
committed
configpm: handle multi-line key='value\n...'
There is old code in configpm to handle mulit-line entries in config.sh along the lines of plibpth='/lib/x86_64-redhat-linux/4.4.5/ /lib/../lib64/ /usr/lib/x86_64-redhat-linux/4.4.5/ /usr/lib/../lib64/ /lib/ /usr/lib/' which was broken, and produced Use of uninitialized value $1 warnings, and messed up the content of lib/Config_heavy.pl. We probably normally don't have multi-line entries, which is why no-one noticed it before, but 40f0262 has started generating the entry above.
1 parent 3b0f6d3 commit ebf3760

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

configpm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ my @non_v = ();
292292
my @v_others = ();
293293
my $in_v = 0;
294294
my %Data = ();
295+
my $quote;
295296

296297

297298
my %seen_quotes;
@@ -323,11 +324,11 @@ my %seen_quotes;
323324
push(@non_v, "#$_"); # not a name='value' line
324325
next;
325326
}
326-
my $quote = $2;
327327
if ($in_v) {
328328
$val .= $_;
329329
}
330330
else {
331+
$quote = $2;
331332
($name,$val) = ($1,$3);
332333
}
333334
$in_v = $val !~ /$quote\n/;

0 commit comments

Comments
 (0)