SERVER-2837 -- be more friendly to piping in the shell
Don't print 'bye' on exit when --quiet is set.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user