-
-
Notifications
You must be signed in to change notification settings - Fork 85
Open
Description
I'm using emacs26 and was able to trigger what is apparently a bug, described in the comment of the following condensed script:
#!/bin/bash
# I'm using gpg v. 2.2.4
# I run the script using $x bashdb
# I get this egregious bashdb response:
#
# (/home/user/Data/bashdb.bug
# Blacklist it for location tracking? (y or n)"
# Note that the here-file which triggers the problem, is indented with **tabs**
mkdir --mode 700 gpg-test
shopt -s lastpipe
gpgSecSwitches="--homedir gpg-test --pinentry-mode loopback --passphrase dummypwd"
# Generate two keys:
gpg $gpgSecSwitches --quick-generate-key "MyName <my@email.com>" rsa1024 cert never | \
awk '/^ +[[:alnum:]]*$/ {print $1}' | read FingerPrintA
gpg $gpgSecSwitches --yes --quick-generate-key "MyName <my@email.com>" rsa1024 cert never | \
awk '/^ +[[:alnum:]]*$/ {print $1}' | read FingerPrintB
# Sign one by the other:
gpg $gpgSecSwitches --yes --command-fd 0 --local-user $FingerPrintB \
--edit-key $FingerPrintA tsign <<-EOF
y
2
2
y
save
EOF
Metadata
Metadata
Assignees
Labels
No labels