Post #2535058
2026-01-08 00:46 UTC
@nblr@chaos.social so many programs like to break from a missing newline it's just become a habit for me to always have one blank line in every config file
never understood why though, must be about how the file is read
Replies (2)
-
@kimapr@ublog.kimapr.net 2026-01-08 01:01
@rose @nblr@chaos.social probably the programs take a simplistic approach to reading text files because the posix spec allows them to. if you go by the posix definition of “text file” and “line”, a file that doesn’t have an end-of-line character at the end isn’t a text file at all, and the last “line” of it isn’t an actual line because it doesn’t end in an end-of-line character, so posix programs that deal in “text files” are allowed to malfunction when encountering such things
-
@seabass@social.seabass.systems 2026-01-08 01:01
@rose @nblr@chaos.social It doesn't even make much sense as an indicator that a file is supposed to be text, because the whole file has to have already been read for the software to see that :/