changeset 35260:91a7204631f1

contrib: ban find(1)'s -printf operator, as it is a GNU-ism Differential Revision: https://phab.mercurial-scm.org/D1598
author Augie Fackler <augie@google.com>
date Tue, 05 Dec 2017 16:44:20 -0500
parents 84607c8b5af8
children 5d176979eb13
files contrib/check-code.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/check-code.py	Wed Dec 06 16:45:38 2017 -0500
+++ b/contrib/check-code.py	Tue Dec 05 16:44:20 2017 -0500
@@ -149,6 +149,8 @@
     (r'env.*-u', "don't use 'env -u VAR', use 'unset VAR'"),
     (r'cp.* -r ', "don't use 'cp -r', use 'cp -R'"),
     (r'grep.* -[ABC]', "don't use grep's context flags"),
+    (r'find.*-printf',
+     "don't use 'find -printf', it doesn't exist on BSD find(1)"),
   ],
   # warnings
   [