contrib/check-code.py
branchstable
changeset 18508 813b7a1f7036
parent 18183 e1caaeb5a2ed
child 18575 667063b22a69
--- a/contrib/check-code.py	Wed Jan 30 10:57:28 2013 -0500
+++ b/contrib/check-code.py	Thu Jan 31 02:39:55 2013 +0100
@@ -78,7 +78,7 @@
   [
     (r'^function', "don't use 'function', use old style"),
     (r'^diff.*-\w*N', "don't use 'diff -N'"),
-    (r'\$PWD', "don't use $PWD, use `pwd`"),
+    (r'\$PWD|\${PWD}', "don't use $PWD, use `pwd`"),
     (r'^([^"\'\n]|("[^"\n]*")|(\'[^\'\n]*\'))*\^', "^ must be quoted"),
   ]
 ]