|
I concur that this is expected.
Additionally the, db.listCommands() helper in the shell, prints properly.
I'm going to go ahead and close this, but feel free to reopen if I'm missing something.
|
|
This seems expected, to me. When printing an object with a string value, the shell does not interpret escape codes contained in the string. In contrast, when printing a string, the shell does interpret escape codes that the string contains.
> db.runCommand("listCommands").commands.copydb
|
{
|
"help" : "copy a database from another host to this host\nusage: {copydb: 1, fromhost: <connection string>, fromdb: <db>, todb: <db>[, slaveOk: <bool>, username: <username>, nonce: <nonce>, key: <key>]}",
|
"slaveOk" : false,
|
"adminOnly" : true
|
}
|
> db.runCommand("listCommands").commands.copydb.help
|
copy a database from another host to this host
|
usage: {copydb: 1, fromhost: <connection string>, fromdb: <db>, todb: <db>[, slaveOk: <bool>, username: <username>, nonce: <nonce>, key: <key>]}
|
|