4 ms·
All it does is compare strings and shell out, should be written in something like Bash rather than C++.
by anothergoogler 8y ago
All it does is compare strings and shell out, should be written in something like Bash rather than C++.
- voltagex_ 8y agoI guess then they'd have to worry about Bash version (or whether Bash is there at all). Why not Go? ;)
- jchw 8y agoLove Go, but here's a good reason: This would make a cool piece of software for inclusion on the base system. Go produces relatively large binaries (for good reasons of course) and therefore it would probably be harder to ship. Meanwhile, C++ runtime almost definitely is going to exist on most bootstrapping images, so it's a lot easier to justify its inclusion - the cost of the C++ is greatly amortized.
- anothergoogler 8y agoIt could easily be written for any Bourne-compatible shell. A compiled language is overkill, and C++ is a security risk.
- mcilloni 8y agoThis kind of task is exactly what good old Perl was designed for.