code: func execEscape(i int, str string) string {
  	escapeMap := map[string]string{
  		`'`: `\`,
  	}
  
  	if i > 0 { // These are escaped only after the first argument
  		escapeMap[`$`] = `$`
  		escapeMap[`%`] = `%`
  	}
  
  	escArg := fmt.Sprintf("%q", str)
  	for k := range escapeMap {
  		reStr := `([` + regexp.QuoteMeta(k) + `])`
  		re := regexp.MustCompile(reStr)
  		escArg = re.ReplaceAllStringFunc(escArg, func(s string) string {
  			escaped := escapeMap[s] + s
  			return escaped
  		})
  	}
  	return escArg
  }
docs: // execEscape uses Golang's string quoting for ", \, \n, and regex for special cases