diff --git a/shell/dbshell.cpp b/shell/dbshell.cpp index f7e7fa4bbf0..7bf8749c39c 100644 --- a/shell/dbshell.cpp +++ b/shell/dbshell.cpp @@ -849,7 +849,8 @@ int _main( int argc, char* argv[] ) { } if ( ! linePtr || ( strlen( linePtr ) == 4 && strstr( linePtr , "exit" ) ) ) { - cout << "bye" << endl; + if ( ! mongo::cmdLine.quiet ) + cout << "bye" << endl; if ( line ) free( line ); break;