Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+3)(-3)

Hello! Please don't put blanks in file names. It's bad for handling them in the Linux terminal.

(+3)(-1)

\

tab-complete

(+1)(-1)

yeah sure it works in this case, but still it's not a good habit

(+1)

Hey! Thanks for the heads up, admittedly had no idea so I'll keep that in mind for the next Linux export :)

(2 edits)

Yeah, the simple answer here is to always enclose filenames with spaces in them in matched quotes (single or double), or escape the spaces with a preceding backslash character (\) when working with such files from a Linux or MacOS terminal.  (Probably the same for Windows as well.)  Filenames with spaces are pretty common for quite a few years now, so one should just get used to assuming a need for using quoting or escaping when spaces in filenames are involved.

One should also be careful of this concern within program code as well to avoid unexpected and sometimes hard to track bugs.  Always ensure any spaces in filenames are handled properly by your code or expect strange issues to occur.