summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2007-06-26 06:08:11 +0000
committerrillig <rillig@pkgsrc.org>2007-06-26 06:08:11 +0000
commitf0015599b2417043fe3e371aac368299a4d4b2e9 (patch)
tree82307b761395f63c2fea255c020821afc75b92cb /pkgtools/pkglint
parentaa7dd2918c7ca17ac599e3b39d3777e009a782e1 (diff)
downloadpkgsrc-f0015599b2417043fe3e371aac368299a4d4b2e9.tar.gz
Fixed the regular expression for detecting the use of the shell variable
$$ (the PID).
Diffstat (limited to 'pkgtools/pkglint')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 4e6769f8e40..f6c0edcb451 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.710 2007/06/18 09:35:59 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.711 2007/06/26 06:08:11 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -4242,7 +4242,7 @@ sub checkline_mk_shellword($$$) {
} elsif ($rest =~ s/^[^\$"\\\`]+//) {
} elsif ($rest =~ s/^\\(?:[\\\"\`]|\$\$)//) {
} elsif ($rest =~ s/^\$\$\{([0-9A-Za-z_]+)\}//
- || $rest =~ s/^\$\$([0-9A-Z_a-z]+|[\$!#?\@])//) {
+ || $rest =~ s/^\$\$([0-9A-Z_a-z]+|[!#?\@]|\$\$)//) {
my ($shvarname) = ($1);
$opt_debug_shell and $line->log_debug("[checkline_mk_shellword] Found double-quoted variable ${shvarname}.");
} elsif ($rest =~ s/^\$\$//) {