44 ms·
my fantasy is they design a shell language where it's impossible to write anything that fails if there are spaces in filenames
by greggman 9y ago
my 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)