changeset 26777:df1a29ec45bf

check-code: block non-portable pipe-and
author timeless <timeless@mozdev.org>
date Thu, 15 Oct 2015 20:36:12 -0400
parents f69c79395fb7
children a95c975f42e3
files contrib/check-code.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
   [