hasProcessSubstitution function

bool hasProcessSubstitution(
  1. String command
)

Detect if a command uses process substitution <() or >().

Implementation

bool hasProcessSubstitution(String command) {
  return RegExp(r'[<>]\(').hasMatch(command);
}