contrib/check-code.py
changeset 34061 11499bad0359
parent 34060 e267d4ee4f2d
child 34082 ba6e14f9a2d8
--- a/contrib/check-code.py	Fri Sep 01 15:47:32 2017 -0700
+++ b/contrib/check-code.py	Fri Sep 01 16:44:30 2017 -0700
@@ -119,6 +119,7 @@
     (r'\[[^\]]+==', '[ foo == bar ] is a bashism, use [ foo = bar ] instead'),
     (r'(^|\|\s*)grep (-\w\s+)*[^|]*[(|]\w',
      "use egrep for extended grep syntax"),
+    (r'(^|\|\s*)e?grep .*\\S', "don't use \\S in regular expression"),
     (r'(?<!!)/bin/', "don't use explicit paths for tools"),
     (r'#!.*/bash', "don't use bash in shebang, use sh"),
     (r'[^\n]\Z', "no trailing newline"),