I fear that pass still doesn't suite all my use cases and therefore ask
you to take another (small) patch. When gpg2 is installed and no
gpg-agent is running pass fails:
$ pass show foo
gpg: gpg-agent is not available in this session
gpg: can't query passphrase in batch mode
gpg: Invalid passphrase; please try again ...
gpg: can't query passphrase in batch mode
gpg: Invalid passphrase; please try again ...
gpg: can't query passphrase in batch mode
gpg: decryption failed: secret key not available
$ echo $?
2
$
Rather than failing, I'd like it to fall back to reading the passphrase
from the terminal.
Thanks in advance
Helmut