Detect if a command uses process substitution <() or >().
<()
>()
bool hasProcessSubstitution(String command) { return RegExp(r'[<>]\(').hasMatch(command); }