From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9012 invoked by alias); 28 Oct 2015 14:34:18 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20841 Received: (qmail 6979 invoked from network); 28 Oct 2015 14:34:17 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=SGXqefTVRhuYTpjq5dOsFMgIPggFb3N16DkXTLiH7xA=; b=0Ma6DPc+v/D0s74fyB7iD0w2//+Q4iAcjWdYVnuF+5/ay46ShcG+thtK4FJ4m8dNSX K8DRkyBirO0nAJQ1Cpf/d8swhkQsV1/TvCH7S6F2MUGEicuJkPF12KvJ62bAk2LSRvr6 Q2hcrOSAoAlRa4tKa2DrYYdaiFKiso8JSahqXGauS36tScN5na21FvDyo/dB7ABzZjpw Qsgc/wmmGM/QWQn7DvKb/U21Trw/QSakvC0GqfT4TL19BGoIsKHwlitrqydhstgVPAJF vS9198hU6sYFTxgV1hhMDFhOTVhzh4Ajv5et8sLFCnsXvl9iK3ixhMitiFr9vcD1LMy1 fksg== X-Received: by 10.129.78.83 with SMTP id c80mr537308ywb.344.1446042853716; Wed, 28 Oct 2015 07:34:13 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20151028111101.GA3212@laptop.local> References: <20151028111101.GA3212@laptop.local> From: shawn wilson Date: Wed, 28 Oct 2015 10:33:53 -0400 Message-ID: Subject: Re: GnuPG 2.1 with Git, problem in zsh, not in ksh To: Zsh Users Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable check that GPG_AGENT_INFO and GPG_TTY are correct - the syntax of the former is :: On Wed, Oct 28, 2015 at 7:11 AM, Andreas Kusalananda K=C3=A4h=C3=A4ri 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=3D"$HOME/.zsh/history" > HISTSIZE=3D10000 > SAVEHIST=3D5000 > > 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=3D"[%m] %B%F{red}%1~%f%b %# " > RPROMPT=3D"%F{blue}%T%f" > > # Zle options > unsetopt BEEP > setopt VI > > autoload -Uz compinit > compinit > > alias ls=3D"ls -F" > > export VISUAL=3D"vim" > export EDITOR=3D"$VISUAL" > > -- > :: Andreas Kusalananda K=C3=A4h=C3=A4ri, Bioinformatics Developer, BILS, > :: Uppsala University, Sweden > ::---------------------------------------------------------------------- > :: My other car is a cdr.