anyone tried opening the magic file "con" from MS DOS Edit?

I was hoping for an editor but it turns out instead it happily opens it but then hangs forever

weird punnet square of results:

EDIT hangs if you open "CON", but errors if you try "C:\CON\CON"
Win95 errors if you try to open "CON", but crashes if you try "C:\CON\CON"

@foone

Wasn't there also once a bug in Win7 or 8 that caused it to hang in kernelspace and bluescreen with these once?

@agowa338 Win95 had that bug, yeah

@foone No, I mean something way more recent. Cause that together with early days Minecrafrt modding (where you had to unzip the jar file and then at some version there was a file named "AUX" in it)

where when I learned about these special filenames for the first time. And I didn't play minecraft on anything less recent than win7, so...

@agowa338 oh that's not a bug, that's an intentional design decision. windows reserves a bunch of filenames and it's a pain

the bug where this crashed the machine hasn't been there since windows 95, that's a separate issue

@foone @agowa338 CON means /dev/ttyS0
There is also NUL and LPT.

@f4grx @foone

Well there are way more:

CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, COM¹, COM², COM³, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9, LPT¹, LPT², and LPT³

https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file

Naming Files, Paths, and Namespaces - Win32 apps

The file systems supported by Windows use the concept of files and directories to access data stored on a disk or device.