parameters: (arg)
return_statement: return '"' + arg + '"'
docstring: escape shell special characters
docstring_summary: escape shell special characters
docstring_tokens: escape shell special characters
function: def escape(arg):
      """escape shell special characters"""
      slash = '\\'
      special = '"$'
  
      arg = arg.replace(slash, slash+slash)
      for c in special:
          arg = arg.replace(c, slash+c)
  
      # print("ESCAPE RESULT: %s" % arg)
      return '"' + arg + '"'
function_tokens: def escape ( arg ) : slash = '\\' special = '"$' arg = arg . replace ( slash , slash + slash ) for c in special : arg = arg . replace ( c , slash + c ) # print("ESCAPE RESULT: %s" % arg) return '"' + arg + '"'