Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: GnuPG 2.1 with Git, problem in zsh, not in ksh

On Wed, Oct 28, 2015 at 12:22 PM, Andreas Kusalananda Kähäri
<andreas.kahari@xxxxxxx> wrote:
> On Wed, Oct 28, 2015 at 03:02:01PM +0000, Peter Stephenson wrote:
>> On Wed, 28 Oct 2015 15:47:39 +0100
>> Andreas Kusalananda Kähäri <andreas.kahari@xxxxxxx> wrote:
>> > Setting GPG_TTY=$( tty ) solved it for me!
>> >
>> > GnuPG 2.1 doesn't use GPG_AGENT_INFO any longer, according to the
>> > gpg2(1) manual.
>> >
>> > I still don't know why it worked in ksh though... (but never mind).
>> Maybe something in your ksh set up is marking the variables for export?
>> It won't do that automatically, though.
>> pws
> I don't think that's it. I don't have a ~/.profile file or point $ENV
> to anything and ksh93 (standard on OS X, which I use) don't parse any
> other startup files. The system /etc/profile only sets the $PATH. The
> environment is inherited from my zsh session when I start up ksh, that's
> about it, and it worked in ksh but not in zsh (does now, since I set
> $GPG_TTY).

anything in {,/usr/local}/etc/<whatever files ksh uses> ?

> I'm wondering if there's some magic happening behind the scenes that I
> don't know about. Maybe something in $FPATH gets triggered and does the
> wrong thing?

IDK what gpg 2 does - I'm still on 1, but your shell doesn't do magic
out of the box - you have to wave (and throw things) at it to make
that happen.

Messages sorted by: Reverse Date, Date, Thread, Author