3 ms·
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 space
by alexvitkov 2y ago
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.
- InfiniteRand 2y agoMy 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...