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
This commit is contained in:
Jaromil 2015-07-02 12:47:29 +02:00
parent eada0538c9
commit 55d3263cac

4
tomb
View File

@ -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