Skip to content

Egregious output: "Blacklist it for location tracking?" #283

@DiagonalArg

Description

@DiagonalArg

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions