PowerShell in Emacs Lisp Shell: Divide by Zero
same issue with docker, see https://github.com/lzybkr/PSReadLine/issues/425
David Wilson (https://twitter.com/daviwil) of PowerShell team gave solution:
this is probably because PSReadLine is treating it like a terminal. You may need to disable that module when running in eshell
If you only ever want to use PowerShell inside of eshell you could create a profile that unloads the module on startup (1/2)
in a normal terminal run powershell, type ‘vim $profile’ add “Remove-Module PSReadLine” there, save, then run powershell in eshell
If you have a question, put $5 at patreon and message me.