In the Windows default command shell (cmd.exe) you can access the history of typed commands using various controls (up arrow for most recent command etc).

When you spawn a new virtual environment using the "poetry shell" command you have a new shell spawned, but the history commands (like up arrow and F7) are non-functional, and if you run doskey /history it gives you the command history from before you ran the "poetry shell" command.

If you run cmd.exe to spawn another shell, this also has history disabled.

Any ideas as to why this might happen or how you get a command shell with history disabled?

Thanks