0
0
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:
Aaron 2009-05-19 13:11:22 -04:00
commit 56629ccaad

View File

@ -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 );
}