try:
GNUPGHOME=$(printf "/tmp/foo\nbar") gpgconf --list-dirs
the result is that someone parsing the output will get "/tmp/foo" and will think
that there is an new gnupg directory named "bar" (with no value).
as field separators, colons are escaped, but i think newlines (as record
separators) should also be escaped.