quote

fun quote(command: String): String?(source)

command as one single-quoted shell word, or null when it is not safe to print: empty, over MAX_COMMAND characters, a control or non-ASCII character, a backtick, $(, a masked secret or a trailing backslash. An embedded single quote becomes '\''.