4 ms·
This reminds me of my unary directory hierarchy: a segment in my test suite consisting entirely of unary newline files and subdirectories, i.e. with filenames '
by ykonstant 2y ago
This reminds me of my unary directory hierarchy: a segment in my test suite consisting entirely of unary newline files and subdirectories, i.e. with filenames '\n\n...\n' for some number of newlines. I use it to test if shell script authors understand how to treat filenames correctly.
- ahazred8ta 2y agoYou monster!
- Daviey 2y agoFunny yes, but any shell script I write I'd be happy for it to fail (gracefully) this test. Unless you can convince me there is a requirement for something as convulted as this?
- ykonstant 2y agoWhen you are writing shell scripts to be deployed to systems you do not control, you are required to handle filenames you do not control; i.e. all of them. I don't care about convincing you, I did not write the tests for you in particular.