shellEscape static method

String shellEscape(
  1. String arg
)

Implementation

static String shellEscape(String arg) {
  return "'${arg.replaceAll("'", r"'\''")}'";
}