diff options
author | Don Anderson <dda@mongodb.com> | 2016-05-25 15:09:36 -0400 |
---|---|---|
committer | Keith Bostic <keith.bostic@mongodb.com> | 2016-05-25 15:09:36 -0400 |
commit | 230fed7fe8f3a011505ea2ea74691cd429aac9ae (patch) | |
tree | 938833e98e6be702d3abb56575485e1c36ffcd72 | |
parent | 5c70c8168784381d4d3afaeebcd81fd8b2909a9a (diff) | |
download | mongo-230fed7fe8f3a011505ea2ea74691cd429aac9ae.tar.gz |
WT-2662 For spell check, strip out double quote literals, they confuse aspell. (#2748)
-rwxr-xr-x | dist/s_string | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dist/s_string b/dist/s_string index 3a4f9e190d3..32aa7528979 100755 --- a/dist/s_string +++ b/dist/s_string @@ -31,7 +31,9 @@ replace() { # Check the spelling of an individual file. check() { # Strip out git hashes, which are seven character hex strings. - sed 's/ [0-9a-f]\{7\} / /g' ../$2 | aspell --lang=en $1 list | + # Strip out double quote char literals ('"'), they confuse aspell. + sed -e 's/ [0-9a-f]\{7\} / /g' -e "s/'\"'//g" ../$2 | + aspell --lang=en $1 list | sort -u | comm -23 /dev/stdin s_string.ok > $t test -s $t && { |