Page MenuHome GnuPG

--edit-key does not respect --output option
Closed, ResolvedPublic

Description

Release: 1.2.4

Environment

Win32, WinXP, gnupg-1.2.4

Description

The --edit-key command, which normally sends data to stdout, does not respect the --output option even when using the --batch option.

How To Repeat

gpg --batch --output foo --edit-key

Fix

Do not use the $CONOUT handle when running in --output mode or
(better?) do not use it in --batch mode and redirect it to the normal STDOUT or --output FILEHANDLE instead.

Event Timeline

I fail to see your problem. --output sends the output to a file but --edit-key is a command not generating data output. It is an interactive command. Using --batch with --edit-key allos to send canned commands but this should in general not be used without --command-fd and --status-fd. Please ask on gnupg-devel for advice on how to use this feature.