6 ms·
Please rename aux.py
- pdpi 5y agoThis is almost certainly due to a windows limitation, which is in turn caused by compatibility for a DOS hack where a bunch of devices were visible through special file names. CON is the more famous one of those. Microsoft still recommends avoiding those file names. https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file https://docs.microsoft.com/en-us/windows/win32/fileio/naming...
- mvkg 5y agoWhat were the PRN and AUX files used for?
- iso1631 5y agoBack in the 90s we had novell intranetware, and internet explorer on our computer room machines which opened up on login. One IT lesson, I changed the front page it opened to something like "<img src='c://con/con'>", very amusing :D Nowadays I'd probably be arrested.
- Slackwise 5y agoWorse: back in the day, you could type raw HTML into AOL Instant Messenger. Notably, being able to construct a link with whatever address you pleased, including `file://c:\con\con`.
- notadev 5y agoNot just that, AOL allowed playing sound files from within a chat room. If a user sent `{s gotmail`, it would play the `gotmail.wav` file on the computer of each person currently in the chat room. So, sending `{s /con/con` or `{s /aux/aux` to that chat would instantly crash the computer of everyone in the chat, causing a BSoD. It was great fun if you were an obnoxious kid, and generally super frustrating for anyone trying to chat.
- hobomatic 5y agoThere was something similar with popular irc clients on windows in the late 90s early 2000s. There was a direct file transfer mechanism called dcc. If you forged a request for con/aux device files you could send instructions to the person's printer or modem and do all sorts of interesting mischief.
- bsjks 5y agoIIRC windows 9x would instantly bluescreen if you tried to open c:\con\con , probably because of a bug in the filesystem driver.
- Slackwise 5y agoThese are old CP/M filenames that DOS reserved for cross-compatibility. They "exist" in every single directory, as CP/M was a directory-less OS.
- BoxOfRain 5y agoThis exact issue bit me in the arse at my old job when I created a directory called Aux in one of our git repositories on my Linux machine and suddenly nobody running Windows could pull from it without a fairly cryptic error. It's weird to think all that debugging was caused by a decision made back in the '70s for CP/M which eventually made its way into Windows via DOS.
- signal11 5y agoWhy only Win32 — Azure Kubernetes had this limitation under some circumstances, even a few years ago[1]. Anyone know if this issue is still present? [1] https://news.ycombinator.com/item?id=17703371 https://news.ycombinator.com/item?id=17703371
- egberts1 5y agoPlease fix Microsoft OneDrive to allow customers’ choice of file names.
- TheChaplain 5y agoThe problem is not OneDrive but Windows and is not easily fixable without breaking backwards compatibility.
- kzrdude 5y agoThen they are not trying hard enough
- viro 5y agoDesign stuff like this can cause a lot of problems, when you just "fix" them. Just ask Windows enterprise customers how printing has been lately have.
- JohnWhigham 5y agoThat may be true for some things, but for example imagine being on the core Windows team in the early 2010s working on the next version of Windows (Windows 10). Given all the baggage of Windows and how committed it is to backwards compatibility, are you going to decide to name the next version of Windows "Windows 9" and deal with the endless deluge of your customer's bemoaning, or are you going to save everyone a lot of headache and just go straight to 10?
- mattl 5y agoWhy You Can't Name A File CON In Windows -- https://www.youtube.com/watch?v=bC6tngl0PTI https://www.youtube.com/watch?v=bC6tngl0PTI
- kevincox 5y agoThe official docs appear to be https://support.microsoft.com/en-us/office/restrictions-and-limitations-in-onedrive-and-sharepoint-64883a5d-228e-48f5-b3d2-eb39e07630fa https://support.microsoft.com/en-us/office/restrictions-and-...
- fredoralive 5y agoThe block on _vti_ sounds wonderful, is there really Frontpage Extensions stuff still somewhere deep the bowels of OneDrive that somehow makes it unsafe?
- teh_klev 5y ago_vti_ is a SharePoint thing. It does have its origins in FrontPage but the folder naming carried over into SharePoint and the functionality has morphed somewhat.
- elesbao 5y agoCP/M 80 and its quirks proving it was a real solid and influential OS :clap:
- nickdothutton 5y agoHello fellow CP/M and MP/M users.
- miohtama 5y agoThe ghosts of the past, they never go quiet.