sudo su <user> to a user with pwsh as their default shell leads to an exception around PSReadLineHistoryFile #3692
Labels
Area-Stability
Label for tracking stability Issues
Issue-Bug
It either shouldn't be doing this or needs an investigation.
issue-mutex
The mutex creation issue on macOS
Prerequisites
Exception report
Screenshot
PS /p4/tcramer/root> whoami
tcramer
PS /p4/tcramer/root> sudo su user2
PowerShell 7.3.4
PS /p4/user2/root>
Oops, something went wrong.
Environment data
Steps to reproduce
Install Powershell on Ubuntu
Set a user's shell to pwsh (in the above it's set to /snap/powershell/current/opt/powershell/pwsh)
sudo su from another user with sudo access
Expected behavior
A powershell prompt running under the provided to the sudo su command with no exceptions
Actual behavior
The above exception is thrown
The text was updated successfully, but these errors were encountered: