2 ms·
> What if one of your file names has a space in it? Most bash scripts will crash when that happens. And good for them! What kind of savage puts spaces on thei
by enriquto 7y ago
> What if one of your file names has a space in it? Most bash scripts will crash when that happens.
And good for them! What kind of savage puts spaces on their filenames?
- DonHopkins 7y agoAll my Whitespace scripts have file names with nothing but spaces in them! https://en.wikipedia.org/wiki/Whitespace_(programming_language) https://en.wikipedia.org/wiki/Whitespace_(programming_langua... I also use spaces in the file names of all my C++2000 source code that takes advantage of the wonderful new whitespace overloading feature -- it's conventional to use the ".cpp " and ".h " suffixes with trailing spaces. http://www.stroustrup.com/whitespace98.pdf http://www.stroustrup.com/whitespace98.pdf
- enriquto 7y agoThat kind of savagery is deeply respected, of course! And it should go even further. Now that the modern compilers and interpreters (clang, python3, etc) allow unicode in variable names, the next step is certainly to accept spaces in variable names. With a slight modification, the python language can be adapted to support spaces inside variable names. After all, people have the right to name their variables however they want!
- DonHopkins 7y agoNot to mention that Unicode has several delicious varieties of invisible non-breaking, zero width spaces and shy hyphens to choose from! (Oooops, I mentioned it.) Tastes great, less filling, and perfectly justified! https://en.wikipedia.org/wiki/Non-breaking_space#Width_variation https://en.wikipedia.org/wiki/Non-breaking_space#Width_varia... https://en.wikipedia.org/wiki/Zero-width_space https://en.wikipedia.org/wiki/Zero-width_space https://en.wikipedia.org/wiki/Soft_hyphen https://en.wikipedia.org/wiki/Soft_hyphen