pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files - Recognize "set -e" even when ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/4cb59e0a8885
branches: trunk
changeset: 507911:4cb59e0a8885
user: rillig <rillig%pkgsrc.org@localhost>
date: Sat Feb 11 11:55:19 2006 +0000
description:
- Recognize "set -e" even when it is hidden by other options, like
"set -eu".
diffstat:
pkgtools/pkglint/files/pkglint.pl | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r cf055fc445ac -r 4cb59e0a8885 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Sat Feb 11 11:53:21 2006 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Sat Feb 11 11:55:19 2006 +0000
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.507 2006/02/11 11:53:21 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.508 2006/02/11 11:55:19 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -2570,7 +2570,7 @@
# State transition.
#
- if ($state == SCST_SET && $shellword eq "-e") {
+ if ($state == SCST_SET && $shellword =~ qr"^-.*e") {
$set_e_mode = true;
}
Home |
Main Index |
Thread Index |
Old Index