[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] [https-everywhere/master 1/2] more correct use of tr
Author: Seth Schoen <schoen@xxxxxxx>
Date: Tue, 2 Nov 2010 12:47:25 -0700
Subject: more correct use of tr
Commit: c0c5f60e31fe4451982d190de648c16ca36ad35c
---
pending-rules/trivial-validate | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/pending-rules/trivial-validate b/pending-rules/trivial-validate
index 4087338..bf60cb7 100755
--- a/pending-rules/trivial-validate
+++ b/pending-rules/trivial-validate
@@ -37,7 +37,7 @@ echo "-- Rules containing non-ASCII characters (possible homoglyph attacks):"
none=true
for i in *.xml
do
- if egrep '(from|to)=' "$i" | tr -d '[:print:]' | tr -d '[:space:]' | grep . >/dev/null
+ if egrep '(from|to)=' "$i" | tr -d '[:print:][:space:]' | grep . >/dev/null
then
echo "$i contains non-ASCII character(s)."
none=false
--
1.7.1