diff contrib/check-code.py @ 11886:73112cb2a6d7

Merge with stable
author Martin Geisler <mg@lazybytes.net>
date Sun, 15 Aug 2010 18:13:46 +0200
parents e1359ad582f6 932448701e7d
children e128fa4615f2
line wrap: on
line diff
--- a/contrib/check-code.py	Sun Aug 15 17:42:44 2010 +0200
+++ b/contrib/check-code.py	Sun Aug 15 18:13:46 2010 +0200
@@ -46,6 +46,7 @@
     (r'^function', "don't use 'function', use old style"),
     (r'grep.*-q', "don't use 'grep -q', redirect to /dev/null"),
     (r'echo.*\\n', "don't use 'echo \\n', use printf"),
+    (r'echo -n', "don't use 'echo -n', use printf"),
     (r'^diff.*-\w*N', "don't use 'diff -N'"),
     (r'(^| )wc[^|]*$', "filter wc output"),
     (r'head -c', "don't use 'head -c', use 'dd'"),