pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files "exec" is a known shell command...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/659ddeaff13d
branches:  trunk
changeset: 514661:659ddeaff13d
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Jun 15 22:50:31 2006 +0000

description:
"exec" is a known shell command. It is one way to suppress the pkglint
warning, but there will be better ones.

diffstat:

 pkgtools/pkglint/files/pkglint.pl |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r a041433c481b -r 659ddeaff13d pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Thu Jun 15 22:23:31 2006 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Thu Jun 15 22:50:31 2006 +0000
@@ -1,5 +1,5 @@
 #! @PERL@
-# $NetBSD: pkglint.pl,v 1.621 2006/06/15 22:22:13 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.622 2006/06/15 22:50:31 rillig Exp $
 #
 
 # pkglint - static analyzer and checker for pkgsrc packages
@@ -3463,7 +3463,7 @@
                        } elsif ($shellword =~ qr"^\$\{([\w_]+)\}$" && (exists($vartools->{$1}) || defined(get_variable_type($line, $1)))) {
                                # Fine.
 
-                       } elsif ($shellword =~ qr"^(?:\(|\)|:|;|;;|&&|\|\||\{|\}|break|case|cd|continue|do|done|elif|else|esac|eval|exit|export|fi|for|if|read|set|shift|then|unset|while)$") {
+                       } elsif ($shellword =~ qr"^(?:\(|\)|:|;|;;|&&|\|\||\{|\}|break|case|cd|continue|do|done|elif|else|esac|eval|exec|exit|export|fi|for|if|read|set|shift|then|unset|while)$") {
                                # Shell builtins are fine.
 
                        } elsif ($shellword =~ qr"^[\w_]+=.*$") {



Home | Main Index | Thread Index | Old Index