diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-03-01 10:24:28 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-03-01 10:24:28 -0500 |
commit | 2ea2c01ba5455bfc3f494a673adb8f29b1f41208 (patch) | |
tree | cca44ff7ea451ab4f5c9c4990373a7977a17dcde /shell | |
parent | 4ada6f436d7794078f3fe22e6af7fb8d0e0695a4 (diff) | |
download | mongo-2ea2c01ba5455bfc3f494a673adb8f29b1f41208.tar.gz |
exit; should exit shell SERVER-683
Diffstat (limited to 'shell')
-rw-r--r-- | shell/dbshell.cpp | 2 |
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 ) |