Subject: Re: bug#37662: substitution failure of nss-certs

From: Bengt Richter <[email-masked]>
Date: Wed, 16 Oct 2019 17:31:40 -0700

On +2019-10-16 23:25:55 +0100, Josh Holland wrote:
> 
> Hi Ludovic,
> 
> Ludovic Courtès <[email-masked]> writes:
> >
> >   cat /proc/PID/environ | xargs -0 echo
> >
> 
> LANG=en_GB.UTF-8 PATH=/usr/local/sbin:/usr/local/bin:/usr/bin INVOCATION_ID=15155558aca749efa1593610e892c3a0 JOURNAL_STREAM=9:19872 GUIX_LOCPATH=/var/guix/profiles/per-user/root/guix-profile/lib/locale GUIX=/gnu/store/f2zvgl9zz13r6rp89y0jjfj9f4jk5h9s-guix-command GUIX_STATE_DIRECTORY=/var/guix GUIX_CONFIGURATION_DIRECTORY=/etc/guix NIX_STORE_DIR=/gnu/store
> 
> --
> Josh Holland
> 

Hi Ludo, Josh,

If you want something that looks like env output, this works for me:
(also easier reading)

cat /proc/PID/environ | sed -E 's:\x00:\n:g'

You knew that, I know, but some onlookers might not :)
BTW, if this is considered ill-mannered besserwisser kibitzing,
or OT-noise-injection, please advise, et je serais sage ;-)
--
Regards,
Bengt Richter