code: func ShellQuoteSingle(str string) string {
  	// Quote anything that looks slightly complicated.
  	if shellWordRe.FindStringIndex(str) == nil {
  		return "'" + strings.Replace(str, "'", "'\\''", -1) + "'"
  	}
  	return str
  }
docs: // ShellQuoteSingle returns a string which is quoted suitably for sh.