It is easier to port a shell than a shell script.
The problem with using C++ ... is that there's already a strong tendency in the language to require you to know everything before you can do anything.
The computer should be doing the hard work. That's what it's paid to do, after all.
You need to go and find someone to teach you the rudiments of irrational discourse.
There's some entertainment value in watching people juggle nitroglycerin.
We can debug relationships, but it's always good policy to consider the people themselves to be features. People get annoyed when you try to debug them.