summaryrefslogtreecommitdiffstats
path: root/regress/regress.pl
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-02-09 15:34:28 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-02-09 15:34:28 +0000
commitffb7fbf356b9c244ecda2af4945a30de66c87730 (patch)
tree9977e6a98695c60b60f520701ab4447781ce7ff4 /regress/regress.pl
parent514b3c918bb51c5db29c844eb8d17090bd16c4f0 (diff)
downloadmandoc-ffb7fbf356b9c244ecda2af4945a30de66c87730.tar.gz
Escape literal braces in a regular expression.
Deprecated perlre(1) syntax reported by Thomas Klausner and Sevan Janiyan.
Diffstat (limited to 'regress/regress.pl')
-rwxr-xr-xregress/regress.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/regress/regress.pl b/regress/regress.pl
index 7684e092..c09f21b6 100755
--- a/regress/regress.pl
+++ b/regress/regress.pl
@@ -142,7 +142,7 @@ sub parse_makefile ($) {
my $var = $1;
my $opt = $2;
my $val = $3;
- $val =~ s/\${(\w+)}/$vars{$1}/;
+ $val =~ s/\$\{(\w+)\}/$vars{$1}/;
$val = "$vars{$var} $val" if $opt eq '+';
$vars{$var} = $val
unless $opt eq '?' && defined $vars{$var};