commit 55d3263cacf0509a9345855508d6422028ad52c9
parent eada0538c9c3bc67c376163f470d8bca7848e42e
Author: Jaromil <jaromil@dyne.org>
Date: Thu, 2 Jul 2015 12:47:29 +0200
Parse only untranslated GNUPG output
this avoids getting in the way utf8 chars like non-breakable space
that will hang ZSh in versions previous to 5.0.8, fix #205
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tomb b/tomb
@@ -924,11 +924,11 @@ gpg_decrypt() {
} || { # using status-file in gpg != 1.4.11
- # TODO: use mkfifo
TOMBSECRET=`print - "$gpgpass" | \
gpg --batch --passphrase-fd 0 --no-tty --no-options \
--status-fd 2 --no-mdc-warning --no-permission-warning \
- --no-secmem-warning` 2>&1 | read -r -d'\n' gpgstatus
+ --no-secmem-warning` |& grep GNUPG: \
+ | read -r -d'\n' gpgstatus
unset gpgpass