Skip to content

Starting and terminating erl.exe under powershell "corrupts" it #9285

@josevalim

Description

@josevalim

Describe the bug

Create this file, called proc.ps1:

$output = Start-Process -FilePath "erl.exe" -NoNewWindow -Wait -PassThru
exit $output.ExitCode

Now invoke proc.ps1 inside Powershell on Windows and it should start the Erlang shell. However, if you press Ctrl+C, it quits Erlang but leaves the shell in a weird state where Ctrl+C and similar do not work anymore.

Affected versions

I can reproduce it on 27.2. I am honestly not sure if this is an Erlang bug or not, maybe it is PowerShell doing weird things, but since I got a minimal reproduction I thought I would report it upstream. It was originally reported here: elixir-lang/elixir#14174

Metadata

Metadata

Assignees

Labels

bugIssue is reported as a bugteam:VMAssigned to OTP team VM

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions