3 ms·
I have a command-line wrapper around gpg for similar reasons - https://dotat.at/prog/regpg/ https://dotat.at/prog/regpg/ The magic you are missing is `--quiet
by fanf2 8y ago
I have a command-line wrapper around gpg for similar reasons - https://dotat.at/prog/regpg/ https://dotat.at/prog/regpg/
The magic you are missing is `--quiet --status-fd 1`, then look for ENC_TO lines - the documentation can be found in https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob;f=doc/DETAILS;hb=HEAD https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=blob;...
Based on my testing this works with gnupg 2.1 and 2.2, so I think it should help with your problem.
- klodolph 8y agoYes, more people should know about the --status-fd option. I only wish there were a version that gave JSON output or something a little more foolproof to parse, the record syntax is easy to analyze with sed/awk/etc but you have to look up the docs for the meaning of each field and I wonder about the quoting sometimes.