- Recognize "set -e" even when it is hidden by other options, like
"set -eu".
This commit is contained in:
parent
9bcca64f85
commit
8ec9cc0783
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue