mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 17:10:48 +01:00
Merge branch 'master' of git@github.com:mongodb/mongo
This commit is contained in:
commit
56629ccaad
@ -259,7 +259,18 @@ shellPrintHelper = function( x ){
|
||||
}
|
||||
|
||||
execShellLine = function(){
|
||||
var res = eval( __line__ );
|
||||
var l = __line__.trim();
|
||||
|
||||
var cmd = l.substring( 0 , ( l.indexOf( " " ) || l.length ) );
|
||||
if ( cmd.length == 0 )
|
||||
cmd = l;
|
||||
|
||||
if ( shellHelper[ cmd ] ){
|
||||
shellHelper( cmd , l.substring( cmd.length + 1 ).trim() );
|
||||
return;
|
||||
}
|
||||
|
||||
var res = eval( l );
|
||||
if ( typeof( res ) != "undefined" ){
|
||||
shellPrintHelper( res );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user