News for hackers. Stuff that matters.
Re:What's New in POSIX 2024 by curt15 on Tuesday October 29, 2024 @07:23AM (#41982730)
Didn't Windows name "Program Files" with a space to force application developers to handle spaces in paths properly?
Re:What's New in POSIX 2024 by ape4 on Tuesday October 29, 2024 @08:18AM (#41983109)
Not to mention C:\Program Files (x86)
Re:What's New in POSIX 2024 by account42 on Tuesday October 29, 2024 @08:32AM (#41983215)
And C:\Programme and other localized variants to force people to go through the proper APIs instead of hardcoding paths.
Re:What's New in POSIX 2024 by pjmlp on Tuesday October 29, 2024 @08:37AM (#41983249)
In theory yes, in practice to this day many people don't bother how to learn how to deal with pathnames in a proper way.
Re:What's New in POSIX 2024 by inetknght on Tuesday October 29, 2024 @09:38AM (#41983726)
Top difficulties in computer science:

1. naming things

2. cache coherency

3. off-by-one errors

???

4. quoting pathnames

Re:What's New in POSIX 2024 by hawski on Tuesday October 29, 2024 @12:18PM (#41985880)
I would replace 4 with parameter expansion rules.
Re:What's New in POSIX 2024 by nneonneo on Tuesday October 29, 2024 @10:05AM (#41983965)
Eh, maybe. In practice I usually do all my moderately-heavy filesystem scripting in Python these days, for which pathname quoting is just a complete non-issue. Of course, I still use a shell for quick-and-dirty stuff, but usually only for pretty simple tasks where the simplest quoting setup ("$i") suffices.
Re:What's New in POSIX 2024 by mmcdermott on Tuesday October 29, 2024 @12:04PM (#41985632)
For the longest time you could get away with this in cmd:

> dir c:\progra~1

So if forcing people to handle spaces was the goal, it took a long time to force it.

Re:What's New in POSIX 2024 by arp242 on Tuesday October 29, 2024 @12:50PM (#41986435)
I'm pretty sure that still works. I forgot the exact scenario, but my Windows CI on GitHub Actions output shorte~1 pathna~1 like that in a script just a few months ago. On one hand, the backwa~1 compati~1 is nice. On the other hand, there's just so much depreca~1 cruft that keeps popping up even on contemp~1 systems.
Re:What's New in POSIX 2024 by InfiniteRand on Tuesday October 29, 2024 @04:50PM (#41989244)
I just got used to installing things I need to interact with in a program into a folder named C:\workspace