contrib/check-code.py
changeset 19628 3193b23eec61
parent 19626 cf6b086d64cc
child 19731 436a3f728375
--- a/contrib/check-code.py	Fri Aug 23 16:05:38 2013 -0700
+++ b/contrib/check-code.py	Mon Aug 26 15:20:44 2013 -0700
@@ -67,6 +67,7 @@
     (r'echo -n', "don't use 'echo -n', use printf"),
     (r'(^| )wc[^|]*$\n(?!.*\(re\))', "filter wc output"),
     (r'head -c', "don't use 'head -c', use 'dd'"),
+    (r'tail -n', "don't use the '-n' option to tail, just use '-<num>'"),
     (r'sha1sum', "don't use sha1sum, use $TESTDIR/md5sum.py"),
     (r'ls.*-\w*R', "don't use 'ls -R', use 'find'"),
     (r'printf.*[^\\]\\([1-9]|0\d)', "don't use 'printf \NNN', use Python"),