summaryrefslogtreecommitdiff
path: root/src/mongo/shell/shell_utils_launcher.cpp
diff options
context:
space:
mode:
authorSam Helman <sam.helman@10gen.com>2014-10-09 14:23:06 -0400
committerBenety Goh <benety@mongodb.com>2014-10-10 09:20:27 -0400
commitb585cefc1450e773fb8e3134685a63793ccae4be (patch)
tree51b4eb886538ee90d43b0251ffcd7319b5f1576c /src/mongo/shell/shell_utils_launcher.cpp
parenta91d9aa82a29fea32c89cf15713bd6bc5a51fe19 (diff)
downloadmongo-b585cefc1450e773fb8e3134685a63793ccae4be.tar.gz
SERVER-15517 use slashes rather than double quotes for escaping in shell launcher
Closes #823 Signed-off-by: Benety Goh <benety@mongodb.com>
Diffstat (limited to 'src/mongo/shell/shell_utils_launcher.cpp')
-rw-r--r--src/mongo/shell/shell_utils_launcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/shell/shell_utils_launcher.cpp b/src/mongo/shell/shell_utils_launcher.cpp
index 78e24fa2699..3ea1c949356 100644
--- a/src/mongo/shell/shell_utils_launcher.cpp
+++ b/src/mongo/shell/shell_utils_launcher.cpp
@@ -375,7 +375,7 @@ namespace mongo {
ss << '"';
// escape all embedded quotes
for (size_t j=0; j<_argv[i].size(); ++j) {
- if (_argv[i][j]=='"') ss << '"';
+ if (_argv[i][j]=='"') ss << '\\';
ss << _argv[i][j];
}
ss << '"';