Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: GnuPG 2.1 with Git, problem in zsh, not in ksh
- X-seq: zsh-users 20842
- From: Andreas Kusalananda Kähäri <andreas.kahari@xxxxxxx>
- To: shawn wilson <ag4ve.us@xxxxxxxxx>
- Subject: Re: GnuPG 2.1 with Git, problem in zsh, not in ksh
- Date: Wed, 28 Oct 2015 15:47:39 +0100
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bils.se; h= user-agent:organization:in-reply-to:content-transfer-encoding :content-disposition:content-type:content-type:mime-version :references:message-id:subject:subject:to:from:from:date:date; s=dkim; t=1446043656; x=1446907657; bh=cBMzHtWKLfvP+bTpEk3rkrbr VG0z7FLkvOHdv/101+k=; b=IHHN+on1qCHhvS0N+EMZq4ySNpP6z7Pw+ZrWWYE7 UhipIlDgYFou7t9a8DPXGLrFGxu+LuLTdkOF5EAEkENDIQ9nDmpn3Ketmgb/L8lF QDd7d7O/iPL3txIzlzqOnDhZLJASIKVq1UretsmqmTiHunrjScfjNdH0w9xi3qTs dWM=
- In-reply-to: <CAH_OBidXA9A=J_h2H9wzjQL2ZrckgvLa_=q66rUoibpG9DSadw@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: shawn wilson <ag4ve.us@xxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Organization: BILS, ICM, Uppsala University, Sweden
- References: <20151028111101.GA3212@laptop.local> <CAH_OBidXA9A=J_h2H9wzjQL2ZrckgvLa_=q66rUoibpG9DSadw@mail.gmail.com>
Thanks for this!
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).
Cheers,
Andreas
On Wed, Oct 28, 2015 at 10:33:53AM -0400, shawn wilson wrote:
> check that GPG_AGENT_INFO and GPG_TTY are correct - the syntax of the
> former is <socket file>:<pid>:<idr but just set it to 1>
>
> On Wed, Oct 28, 2015 at 7:11 AM, Andreas Kusalananda Kähäri
> <andreas.kahari@xxxxxxx> wrote:
> > Hi,
> >
> > I'm a Perl developer using zsh and git, and I sign my git commits using
> > gpg2 (from GnuPG 2.1).
> >
> > In ksh, I'm able to "git commit -S code.pl", but I noticed that this
> > stopped working the other week when I started using zsh:
> >
> > [laptop] ENA % git commit -S submit.pl
> > gpg: signing failed: Inappropriate ioctl for device
> > gpg: signing failed: Inappropriate ioctl for device
> > error: gpg failed to sign the data
> > fatal: failed to write commit object
> >
> > Simply starting up ksh and running the same command works. "Works"
> > in this case means git calls gpg2 which uses pinentry to request the
> > password, etc.
> >
> > Since I'm resonably new to zsh, I'm not even sure where to start looking
> > for the solution. The environment variables in zsh are identical to
> > those in ksh.
> >
> > This is my ~/.zshrc file:
> >
> > # For interactive zsh sessions
> >
> > # Completion options
> > unsetopt AUTO_REMOVE_SLASH
> >
> > # History options
> > setopt EXTENDED_HISTORY
> > setopt HIST_EXPIRE_DUPS_FIRST
> > setopt HIST_FIND_NO_DUPS
> > setopt HIST_IGNORE_DUPS
> > setopt SHARE_HISTORY
> > unsetopt INC_APPEND_HISTORY
> >
> > HISTFILE="$HOME/.zsh/history"
> > HISTSIZE=10000
> > SAVEHIST=5000
> >
> > bindkey '^R' history-incremental-pattern-search-backward
> > bindkey '^G' history-beginning-search-backward
> >
> > # Input/Output options
> > setopt CORRECT
> > setopt DVORAK
> >
> > # Job control options
> > setopt BGNICE
> >
> > # Prompting options
> > #setopt TRANSIENT_RPROMPT
> >
> > PROMPT="[%m] %B%F{red}%1~%f%b %# "
> > RPROMPT="%F{blue}%T%f"
> >
> > # Zle options
> > unsetopt BEEP
> > setopt VI
> >
> > autoload -Uz compinit
> > compinit
> >
> > alias ls="ls -F"
> >
> > export VISUAL="vim"
> > export EDITOR="$VISUAL"
> >
> > --
> > :: Andreas Kusalananda Kähäri, Bioinformatics Developer, BILS,
> > :: Uppsala University, Sweden
> > ::----------------------------------------------------------------------
> > :: My other car is a cdr.
>
--
:: Andreas Kusalananda Kähäri, Bioinformatics Developer, BILS,
:: Uppsala University, Sweden
::----------------------------------------------------------------------
:: My other car is a cdr.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author