How todo I reliable convert /proc/pid/environ to argument for the env command? IFS=$'\n' ; env -i $(xargs -0n1 -a /proc/$$/environ)only working when all environment variables is exlcuded the $'\n' character. IFS=$'\0'is not working in bash and dash. Is
IFS=$'\n' ; env -i $(xargs -0n1 -a /proc/$$/environ)only works when all environment variables do not have the newline character.IFS=$'\0'is not working in bash and dash.
Is there any other available way ?(included any other shell way)?