News for hackers. Stuff that matters.
Re:“Why I develop on Windows” by justeleblanc on Friday April 28, 2023 @06:49PM (#35748111)
> There's a "aux.rs", also a verboten filename in Windows.

That's not true.

> And then there were some that differed only in case, which honestly I don't know how we manage that, as the non-Windows side is macOS, and yet roughly once per year someone introduces two files, same name, differing case into the repo.

Sounds like a crappily maintained repo.

Re:“Why I develop on Windows” by cesarb on Friday April 28, 2023 @07:10PM (#35748309)
And for the historical explanation for why these filenames are special even with an extension, see https://devblogs.microsoft.com/oldnewthing/20031022-00/?p=42...

"Suppose you wanted the listing file to go straight to the printer. [...] So you typed “PRN” as the filename. Now, the assembler doesn’t know about these magic filenames. So the assembler will try to create the file “PRN.LST” and then start writing to it. Little does the assembler realize that the output is actually going to the printer."

Windows path handling is full of special cases and subtle gotchas. See https://googleprojectzero.blogspot.com/2016/02/the-definitiv... for a very detailed list.

Re:“Why I develop on Windows” by justeleblanc on Saturday April 29, 2023 @10:08AM (#35752997)
Look, I just created a file named "aux.rs" on my Windows machine. It's not true.
Re:“Why I develop on Windows” by igorv on Saturday April 29, 2023 @03:29PM (#35756257)
Same. It's definitely not true
Re:“Why I develop on Windows” by franga2000 on Saturday April 29, 2023 @05:16PM (#35757286)
I've seen this plenty of times, but maybe if was fixed in the last year or so. My issue was when trying to delete a Linux source tree that was git cloned on Linux onto a flash drive. Maybe the filesystem had something to do with it, but it was entirely impossible to delete it using any tool I know of in Windows.
Re:“Why I develop on Windows” by ygra on Sunday April 30, 2023 @02:20AM (#35760104)
I think they have changed it so that you can by now create files with forbidden names and an extension. But that's a somewhat recent change.

Also you could always create such names with the right APIs, so one application could create such files, but another can't delete them or open them.

Re:“Why I develop on Windows” by deathanatos on Monday May 01, 2023 @11:26AM (#35774149)
> That's not true.

Well, just for you, I've searched the Slack history. IIRC, this was inside a WSL session in Windows, but it definitely originated on a Windows machine:

  $ git checkout rename-some-files
  error: invalid path 'foo-crate-1/src/aux.rs'
  error: invalid path 'foo-crate-2/src/aux.rs'
  error: invalid path 'foo-crate-3/src/aux.rs'
  <more filenames with other errors>