Release: 1.2.3rc2
Environment
NetBSD/i386 1.6.1(ish)
Description
(Originally noticed in 1.2.2; verified still extant in 1.2.3rc2)
When piping stdout to anything other than a direct tty file descriptor, the list of keys returned by --search-keys disappears. No combination of "--foo-fd 2" can make it reappear on another fd, even if the fd (stderr in the case of 2) is indeed a tty.
The "Enter number..." prompt, which goes to stderr, is unaffected, so you can select keys from the now invisible menu. So, other than the absent key list, the command functions properly.
This afflicts any frontend application that wishes to provide integration functionality, such as pgpenvelope (http://pgpenvelope.sourceforge.net/) which is only capable of using --recv-keys due to this problem.
How To Repeat
$ gpg --keyserver pgp.mit.edu --search-keys foo@bar | tee
The above command will simply pipe stdout rather than presenting a tty, so otherwise the display *should* be identical to the display without "| tee". However, the command above doesn't list the found keys.
Fix
Added a fflush (stdout) before printing the prompt. This does not harm but schould solve Todd's problem.
Release Note
The fix is in 1.2.4.