On Mon, Aug 31, 2015 at 00:22:06 +0200, Thorsten Glaser wrote:
> On Sat, 29 Aug 2015, Michael Gold wrote:
> 
> > This seems to work for gpg1 and gpg2:
> >     : "${GPG_AGENT_INFO=${GNUPGHOME-$HOME/.gnupg}/S.gpg-agent:0:1}"
> >     export GPG_AGENT_INFO
> 
> I assume this needs to be written after the eval?

I was assuming that, but I don't think it matters.  2.1 won't give you
anything to eval, and 2.0 will overwrite any earlier setting.

> > Trying to support gpg2.0 and 2.1 in one startup script is still annoying
> 
> This is a requirement, though.

I've attached the script I'm using as an example.  I didn't test this
version with gpg 2.0 but I expect it will still work.  ('gpg2 --version'
is the obvious way to set $gpg21; I was just avoiding the subshell.)

-- Michael

Attachment: 70gnupg-agent.sh
Description: Bourne shell script

Attachment: signature.asc
Description: Digital signature

Reply via email to