Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> error out if they are about to print a pathname that contains a newline in a context where newlines may be used as a separator

But that's already broken. This is a situation where filenames with newlines in them are indistinguishable from two filenames in outputs. So instead of producing subtly broken output, tools are encouraged (not forced) to explicitly fail with a lot of noise.

The "in a context where newlines may be used as a separator" part of this sentence is very important.

IIUC the tools are still allowed to succeed in non broken situations, for instance when a null separator is used and not a new line character. And I can't imagine the tools you listed will start breaking in situations that worked (apart from file creation - indeed this will likely start breaking, and new line characters in filename needs to be considered deprecated and things using them to be fixed).

This is strictly better IMHO (if one thinks that newlines in files are not worth the troubles given how things work in POSIX, especially the part where things are line-based and new line characters have quite some significance)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: