summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-03-01 10:24:28 -0500
committerEliot Horowitz <eliot@10gen.com>2010-03-01 10:24:28 -0500
commit2ea2c01ba5455bfc3f494a673adb8f29b1f41208 (patch)
treecca44ff7ea451ab4f5c9c4990373a7977a17dcde /shell
parent4ada6f436d7794078f3fe22e6af7fb8d0e0695a4 (diff)
downloadmongo-2ea2c01ba5455bfc3f494a673adb8f29b1f41208.tar.gz
exit; should exit shell SERVER-683
Diffstat (limited to 'shell')
-rw-r--r--shell/dbshell.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/dbshell.cpp b/shell/dbshell.cpp
index 767c4d2ae91..f3147fd3814 100644
--- a/shell/dbshell.cpp
+++ b/shell/dbshell.cpp
@@ -467,7 +467,7 @@ int _main(int argc, char* argv[]) {
}
string code = line;
- if ( code == "exit" ){
+ if ( code == "exit" || code == "exit;" ){
break;
}
if ( code.size() == 0 )