4 ms·
That'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
by hashhar 9y ago
That'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)