shellEscape function

String shellEscape(
  1. String s
)

Implementation

String shellEscape(String s){
  return s.replaceAll("'", r"'\'\''");
}