From 772f5f839c61c1fbb32d77784bbcdd8859c87a2a Mon Sep 17 00:00:00 2001 From: x-ist <-@-.-> Date: Thu, 2 Aug 2012 19:35:45 +0000 Subject: [PATCH] Since the search pattern is wrapped in double quotes for grep, the symbol ' (apostrophe) must not be escaped. Fixes #8776. Signed-off-by: Matt Madia --- src/apps/text_search/Grepper.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/apps/text_search/Grepper.cpp b/src/apps/text_search/Grepper.cpp index 053dcbb47c..a20103e7d0 100644 --- a/src/apps/text_search/Grepper.cpp +++ b/src/apps/text_search/Grepper.cpp @@ -302,8 +302,7 @@ Grepper::_SetPattern(const char* src) || (c == '?') || (c == '*') || (c == '+') || (c == '-') || (c == ':') || (c == '^') - || (c == '\'') || (c == '"') - || (c == '`')) { + || (c == '"') || (c == '`')) { *dstPtr++ = '\\'; } else if ((c == '\\') || (c == '$')) { // Some characters need to be escaped