News for hackers. Stuff that matters.
Re:What's New in POSIX 2024 by consteval on Tuesday October 29, 2024 @09:33AM (#41983690)
Whitespace in filenames in general is difficult to deal with. Many, maybe most, programs get it wrong. It's not just about shell scripts, many GUI programs fail to handle those files properly too.
Re:What's New in POSIX 2024 by alexvitkov on Tuesday October 29, 2024 @10:06AM (#41983978)
When GUI programs mishandle filenames with spaces, IME it's usually because they spawn a subshell in a naive way (system("rm " + filename)).

To mishandle spaces you have to split an input w/ filenames by whitespace, which is not that common of an operation outside of a shell.

Re:What's New in POSIX 2024 by InfiniteRand on Tuesday October 29, 2024 @04:52PM (#41989274)
My favorite file+space issues is spaces at the end of file names, especially when you copy and paste text, or text gets trimmed from an input box, or the person forgets to trim space from an input box...
Re:What's New in POSIX 2024 by nradov on Tuesday October 29, 2024 @11:21AM (#41984776)
The vast majority of Windows and MacOS programs get it right.
Re:What's New in POSIX 2024 by consteval on Wednesday October 30, 2024 @10:07AM (#41994971)
No, no they don't - you just don't notice when they get it wrong, and you also don't name your files stupid things (I imagine).

If you actually test this, you'll realize a ton of Windows programs get it wrong.

Also, in general this is a poor argument. The goal of Linux isn't to be as much like Windows as possible, because Windows sucks ass. Nobody in their right mind would use Linux if it was just Windows but, presumably, shittier. The entire appeal of Linux is that it isn't Windows, and it isn't MacOS.

Re:What's New in POSIX 2024 by arp242 on Tuesday October 29, 2024 @12:54PM (#41986507)
Eh? It's really not a bother in pretty much any programming language, and you don't really need to do anything special for it. I don't know any program that has any problems with it.

Even zsh has fixed this. It's just /bin/sh and bash that are annoying.