i’m trying to execute below command using golang on Core OS
/bin/xargs -0 bash -c ‘printf “%q\n” “$@”’ – < /proc/3194/environ
its fail with failed with exit status 127\n msg=“bash: printf “%!q(MISSING)\n” “$@”: command not found\n”
subcmd := fmt.Sprintf("%s %s", "'printf \"%%q\\n\" \"$@\"' -- < ", file)
cmd := exec.Command("xargs", "-0", "bash", "-c", subcmd)
out, err := cmd.CombinedOutput()