psutils icon indicating copy to clipboard operation
psutils copied to clipboard

sudo breaks the shell after terminating a batch job with ctrl+c

Open VulumeCode opened this issue 3 years ago • 1 comments

When I start a batch job with sudo, terminating it will cause the shell to hang. It terminates but then the terminal gets all messed up, things are printed in the wrong place, keystrokes don't register anymore.

image

This happens too if you "sudo pwsh" and terminate a batch job started without sudo.

PowerShell 7.3.3, no profile

VulumeCode avatar Apr 12 '23 10:04 VulumeCode

I can confirm this also happens to me and does not seem to be restricted to any specific Powershell version either.

noderat avatar Oct 04 '24 16:10 noderat