aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-03-23 13:11:30 -0700
committerGuy Harris <guy@alum.mit.edu>2016-03-23 20:12:41 +0000
commit77b26d6d71150ba0870541ac31bf6176fbfaf26e (patch)
treec101ecf49d23dbe6af258eb77f36afe4723ebcd7 /tools
parente8472e5660833e261938c63c0ccf9e25138c7832 (diff)
That's not specific to OS X.
OS X's sed appears to be a *BSD sed, so the same problem might exist on *BSD, or at least some *BSDs, and it might, in fact, be a problem with everything except for GNU sed. Change-Id: I267d9d7eb077c8ec39135bac7eff2c765af3efcf Reviewed-on: https://code.wireshark.org/review/14601 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/pre-commit7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/pre-commit b/tools/pre-commit
index ae4e2f0371..9defcd1cb4 100755
--- a/tools/pre-commit
+++ b/tools/pre-commit
@@ -64,8 +64,11 @@ if [ $? -ne 0 ]; then
fi
# On windows python will output \r\n line endings - we don't want that
-# On MacOS the line below will remove all 'r' characters from the filenames
-# - we want this even less.
+# On systems using a version of sed that doesn't support C-style
+# backslash escapes in search patterns - this probably includes most
+# if not all of the *BSDs as well as OS X, and might include any system
+# not using GNU sed - the line below will remove all 'r' characters from
+# the filenames - we want this even less.
#CHECK_FILES=`echo "$CHECK_FILES" | sed 's/\r//g'`
for FILE in $CHECK_FILES; do