I found this post looking for a way to make the mongoDB shell work properly in bash, which I installed on Windows 10 as part of a git installation. Everything works, but whilst mongosh works perfectly using the Windows CLI, all the nice features of mongosh are lost in bash. Indeed, I found it quite error prone in bash, so I just keep on using it with the CLI.