On Tue 2017-08-01 14:17:37 -0400, Robert J. Hansen wrote:
> (If you're wondering why I'd do this, GPGME does not yet have a way to
> query key prefs, and I need them for a project.)

Thanks for the suggestion, i've recorded it here:
https://dev.gnupg.org/T3323

> There's no security reason to dump this to the console.  It's just
> publicly-available information about the certificate.  And yet, it
> consistently puts zero bytes in result.stdout, while displaying data to
> the console.

I agree this seems like a non-useful behavior, but if you're planning on
using gpg in an automated way and you want machine-parseable output, i
recommend including at least the following arguments in addition to
whatever else you want gpg to do:

    --no-tty
    --batch
    --quiet
    --with-colons
    --fixed-list-mode

hth,

        --dkg

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users

Reply via email to