def shellQuote(value):
 return ("'%s'" % value.replace("'", '\'"\'"\''))

def shellQuote ( value ) : return ( "'%s'" % value . replace ( "'" , '\'"\'"\'' ) )
return the string value in a form that can safely be inserted into a shell command .