diff options
author | rillig <rillig@pkgsrc.org> | 2019-05-26 14:05:57 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2019-05-26 14:05:57 +0000 |
commit | 50ce28c1f62b809c25829a3890385b22b5b7a05d (patch) | |
tree | a4642066b77f4b3540d2cc0db731ffd152bf3e30 /pkgtools/pkglint/files/shell.go | |
parent | eabe803a0658dc4fd88da0c5685b5943a25eb80c (diff) | |
download | pkgsrc-50ce28c1f62b809c25829a3890385b22b5b7a05d.tar.gz |
pkgtools/pkglint: update to 5.7.12
Changes since 5.7.11:
* Fixed an alignment bug when pkglint replaced SUBST_SED with
SUBST_VARS.
* Added many test cases.
Diffstat (limited to 'pkgtools/pkglint/files/shell.go')
-rw-r--r-- | pkgtools/pkglint/files/shell.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkglint/files/shell.go b/pkgtools/pkglint/files/shell.go index 35e23aea7fd..5a9ffa0c6b0 100644 --- a/pkgtools/pkglint/files/shell.go +++ b/pkgtools/pkglint/files/shell.go @@ -35,7 +35,7 @@ func (ck *ShellLineChecker) Explain(explanation ...string) { ck.mkline.Explain(explanation...) } -var shellCommandsType = &Vartype{BtShellCommands, NoVartypeOptions, []ACLEntry{{"*", aclpAllRuntime}}} +var shellCommandsType = NewVartype(BtShellCommands, NoVartypeOptions, NewACLEntry("*", aclpAllRuntime)) var shellWordVuc = &VarUseContext{shellCommandsType, vucTimeUnknown, VucQuotPlain, false} func (ck *ShellLineChecker) CheckWord(token string, checkQuoting bool, time ToolTime) { @@ -648,13 +648,13 @@ func (scc *SimpleCommandChecker) checkRegexReplace() { } checkArg := func(arg string) { - if matches(arg, `"^[\"\'].*[\"\']$`) { + if matches(arg, `^["'].*["']$`) { return } // Substitution commands that consist only of safe characters cannot // have any side effects, therefore they don't need to be quoted. - if matches(arg, `^([\w,.]|\\[.])+$`) { + if matches(arg, `^([\w,.]|\\.)+$`) { return } |