changeset 10373:e4c7972002e4

check-code.py: escape backslash
author Mads Kiilerich <mads@kiilerich.com>
date Sun, 07 Feb 2010 01:52:10 +0100
parents 27d542bc0f5b
children 3aa35db5e38c
files contrib/check-code.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"),