check-code.py: escape backslash
authorMads Kiilerich <mads@kiilerich.com>
Sun, 07 Feb 2010 01:52:10 +0100
changeset 10373 e4c7972002e4
parent 10372 27d542bc0f5b
child 10374 3aa35db5e38c
check-code.py: escape backslash
contrib/check-code.py
--- a/contrib/check-code.py	Sun Feb 07 07:37:05 2010 -0600
+++ b/contrib/check-code.py	Sun Feb 07 01:52:10 2010 +0100
@@ -37,7 +37,7 @@
     (r'\W\$?\(\([^\)]*\)\)', "don't use (()) or $(()), use expr"),
     (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"),