I'm trying to make a list of commands including piped commands and running them.
And I'm failing at that.
I've looked at multiple examples at this forum and stackoverflow of people doing piped commands and each one seems different, so I'm utterly confused.
These are the two main ones I'm looking at:
And this is what I've got so far:
Imitating this forum's way of piping:
Imitating the stackoverflow way of piping:
In both examples my first issue seems to be that I've encased the process child
with an option type and it's telling me that a move has occured.
I usually fix such issues with cloning or adding a copy trait to a type that I made myself,
but this is a standard type, child or option, so I'm clueless on what to do about it.