From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2289 invoked by alias); 28 Oct 2015 11:11:12 -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: 20839 Received: (qmail 6334 invoked from network); 28 Oct 2015 11:11:08 -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,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bils.se; h= user-agent:organization:content-transfer-encoding :content-disposition:content-type:content-type:mime-version :message-id:subject:subject:to:from:from:date:date; s=dkim; t= 1446030658; x=1446894659; bh=KY1V9k9BvqKj/+wizuS86C/icVVwrEPP2JQ 57DNa6S4=; b=h6EnZ8TMSZKlQdOCZ15obsDD7TYhOJXGE1Frlp4xJyrVDd/bW/4 pVuKYln6EB++wBxRsZczmcBfUAhUavB7VIR9w9npR+y6HBGa6RNAha+CrVpxndYd 18yuJanWBLPvUnDre+IKc3BXsEpDzqAp2D5xHxVIXv4+HtDRn0OvmzZ8= X-Virus-Scanned: amavisd-new at bils.scilifelab.se Date: Wed, 28 Oct 2015 12:11:01 +0100 From: Andreas Kusalananda =?iso-8859-1?B?S+Ro5HJp?= To: zsh-users@zsh.org Subject: GnuPG 2.1 with Git, problem in zsh, not in ksh Message-ID: <20151028111101.GA3212@laptop.local> Mail-Followup-To: zsh-users@zsh.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit Organization: BILS, ICM, Uppsala University, Sweden User-Agent: Mutt/1.5.24 (2015-08-30) 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.