# HG changeset patch # User timeless # Date 2015-10-16 00:36:12 # Node ID df1a29ec45bfaee30f974b06a0214a3359b369aa # Parent f69c79395fb718cb4ae68374a95767b1934181c8 check-code: block non-portable pipe-and diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -125,6 +125,7 @@ testpats = [ (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 [