Re:llIlI.lI: a URL shortener using only I/l to encode domains
by ykonstant on Sunday May 12, 2024 @04:55AM
(#40333099)
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.
[ Parent
| on HN ]
Re:llIlI.lI: a URL shortener using only I/l to encode domains
by ahazred8ta on Sunday May 12, 2024 @06:14AM
(#40333328)
You monster!
Re:llIlI.lI: a URL shortener using only I/l to encode domains
by Daviey on Sunday May 12, 2024 @10:25AM
(#40334728)
Funny 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?
Re:llIlI.lI: a URL shortener using only I/l to encode domains
by ykonstant on Sunday May 12, 2024 @07:42PM
(#40338424)
When 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.