4 ms·
And some people might see that as a disadvantage, but personally I think it's a good thing that shelling out requires some setup (using `shlex` to parse a comma
by cooper12 11y ago
And some people might see that as a disadvantage, but personally I think it's a good thing that shelling out requires some setup (using `shlex` to parse a command string into an escaped list for example) and using a library rather than conveniently using backticks because it encourages you to try using the language's capabilities first.
In addition to all the points mentioned by the author, another problem with relying on external commands is portability. Even the ubiquitous and UNIX-specified `grep` command contains extensions in OSX and GNU compatibility flags.