diff options
author | rillig <rillig@pkgsrc.org> | 2006-02-11 11:55:19 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-02-11 11:55:19 +0000 |
commit | 8ec9cc07834e7d768b1618fa97dad0341c3eb9b9 (patch) | |
tree | 46879f01406d9af3bef3dea8a16baa1765481da7 /pkgtools | |
parent | 9bcca64f858c70168db49a585e10cfc7d1cfce30 (diff) | |
download | pkgsrc-8ec9cc07834e7d768b1618fa97dad0341c3eb9b9.tar.gz |
- Recognize "set -e" even when it is hidden by other options, like
"set -eu".
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 aeb5a78153c..453130163a0 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -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 @@ sub checkline_mk_shelltext($$) { # State transition. # - if ($state == SCST_SET && $shellword eq "-e") { + if ($state == SCST_SET && $shellword =~ qr"^-.*e") { $set_e_mode = true; } |