See below - I can retrieve my addUser lines with the up arrow.
Aaron-Staples-MacBook-Pro:mongo aaron$ ./mongo
MongoDB shell version: 2.0.0-rc2-pre-
connecting to: test
> db.addUser( 'aaron', 'mypass' )
{
"user" : "aaron",
"readOnly" : false,
"pwd" : "8c875bb39fcf051edc876c0ee71d5585",
"_id" : ObjectId("4e668f1dd04af0d2e2b8b83e")
}
> db.addUser( 'aaron', 'mypass' ) <<<-------- Got this one by pressing up arrow
{
"updatedExisting" : true,
"n" : 1,
"connectionId" : 2,
"err" : null,
"ok" : 1
}
{
"_id" : ObjectId("4e668f1dd04af0d2e2b8b83e"),
"user" : "aaron",
"readOnly" : false,
"pwd" : "8c875bb39fcf051edc876c0ee71d5585"
}
>
bye
Aaron-Staples-MacBook-Pro:mongo aaron$ ./mongo
MongoDB shell version: 2.0.0-rc2-pre-
connecting to: test
> db.addUser( 'aaron', 'mypass' ) <<<-------- Got this one by pressing up arrow
{
"updatedExisting" : true,
"n" : 1,
"connectionId" : 4,
"err" : null,
"ok" : 1
}
{
"_id" : ObjectId("4e668f1dd04af0d2e2b8b83e"),
"user" : "aaron",
"readOnly" : false,
"pwd" : "8c875bb39fcf051edc876c0ee71d5585"
}
>
- is related to
-
SERVER-36802 Don't omit db.auth() et al from shell history if they don't contain string literal password
- Closed