consider the following three commands in the 1.4.x series (the gpg-agent is
running; gpg.conf contains use-agent; the agent is seeded with the correct
passphrase):
A) gpg --passphrase-fd=0 --clearsign test.txt
C) gpg --use-agent --passphrase-fd=0 --clearsign test.txt
B) gpg --passphrase-fd=0 --use-agent --clearsign test.txt
They have three different behaviors:
A) prompts on the terminal, reads passphrase from stdin, does not query the
agent for the passphrase (if the stdin passphrase is wrong, the signing fails)
B) does not prompt on the terminal, reads passphrase from stdin, does not query
the agent for the passphrase (if the stdin passphrase is wrong, the signing fails)
C) does not prompt on the terminal, reads passphrase from stdin, queries the
agent for the passphrase (if the stdin passphrase is wrong, the signing succeeds
anyway)
It seems that there is some sort of "last-option wins" behavior, but it's not
particularly predictable which options (or permutation of the options) will have
which effect.