check-code: block non-portable pipe-and
authortimeless <timeless@mozdev.org>
Thu, 15 Oct 2015 20:36:12 -0400
changeset 26777 df1a29ec45bf
parent 26776 f69c79395fb7
child 26778 a95c975f42e3
check-code: block non-portable pipe-and
contrib/check-code.py
--- a/contrib/check-code.py	Thu Oct 15 20:32:01 2015 -0400
+++ b/contrib/check-code.py	Thu Oct 15 20:36:12 2015 -0400
@@ -125,6 +125,7 @@
     (r'^diff *-\w*u.*$\n(^  \$ |^$)', "prefix diff -u with cmp"),
     (r'seq ', "don't use 'seq', use $TESTDIR/seq.py"),
     (r'\butil\.Abort\b', "directly use error.Abort"),
+    (r'\|&', "don't use |&, use 2>&1"),
   ],
   # warnings
   [