While entering multi-line command, mongodb shell persist only first line of the command in history. It should persist multiple line of the command as a whole like MySql does.
For example: when i type as below:
Only "db.help(" string saved in history and next time when i access history will get only "db.help(".
Ideally it should save the whole command and next time when i check history it should bring back the command as a whole.
Changing this line will start storing the whole command in history. But not sure from where the command is read again so that piece also need to take care of this scenario.
line:788 shellHistoryAdd( line ); ==> shellHistoryAdd(code.c_str() );