diff options
author | rillig <rillig@pkgsrc.org> | 2007-06-26 06:08:11 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-06-26 06:08:11 +0000 |
commit | 026eba79e6436d0e6b6c4e07c4af00b9c1a242d5 (patch) | |
tree | 82307b761395f63c2fea255c020821afc75b92cb /pkgtools | |
parent | e821d7589efe4026f0683a2ec636c385ea191b10 (diff) | |
download | pkgsrc-026eba79e6436d0e6b6c4e07c4af00b9c1a242d5.tar.gz |
Fixed the regular expression for detecting the use of the shell variable
$$ (the PID).
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 4 |
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/^\$\$//) { |