5 ms·
By the way, IMHO much of the ugliness of shells comes from the requirement that simple filenames are to be used without additional escape characters. I think we
by amelius 9y ago
By the way, IMHO much of the ugliness of shells comes from the requirement that simple filenames are to be used without additional escape characters. I think we should ditch that requirement.
- deleted 9y ago[deleted]
- frou_dh 9y agoMy fantasy crosscutting change is outlawing spaces in filenames, at the filesystem level!
- greggman 9y agomy fantasy is they design a shell language where it's impossible to write anything that fails if there are spaces in filenames
- hashhar 9y agoThat's much better than what the parent wants. Almost always whenever I write any script almost 25% of the time is spent ensuring it doesn't break due to spaces or special unescaped characters.
- frou_dh 9y agoYou already have that. Just write your script in one of the countless sane languages that are #!-able.
- greggman 9y agountil your script needs to launch/spawn another app/script/command/program.
- frou_dh 9y agoDoesn't necessarily have to be a major hassle. With my homemade Lisp, here's a quick and dirty shorthand for running external programs (ultimately boiling down to fork+exec): (extend-parser "!" (mac (cmd) `(apply run (map to-string ',cmd)))) !(sed "s/foo/bar/" README)
- tonyedgecombe 9y agoand uppercase.