Page MenuHome GnuPG

gpgv(1) manpage is ambiguous about argument list
Closed, ResolvedPublic

Description

gpgv(1) says two different things about what it expects of its positional arguments:

SYNOPSIS
       gpgv [options] signed_files

and

EXAMPLES
       gpgv pgpfile
       gpgv sigfile [datafile]

These seem to be mutually exclusive, since the synopsis appears to claim that if multiple files are offered, each one will be a "signed file", while the examples suggest that if there are two files, they will be interpreted as a detached signature and the message being signed.

I'm aware that most tools use gpgv according to the EXAMPLES section. should the SYNOPSIS section be corrected? Or, if the SYNOPSIS is correct, how does gpgv distinguish between consideration of two signed files and a detached signature and its message?

Details

Version
2.2.43

Revisions and Commits

Event Timeline

werner claimed this task.
werner edited projects, added Documentation; removed Bug Report.

Thanks for this prompt fix! but they're still not aligned. with this fix, the Synopsis is:

SYNOPSIS
    gpgv [options] sigfile [ datafiles ]

while the Examples section uses the singular for the final argument:

EXAMPLES
       gpgv pgpfile
       gpgv sigfile [datafile]

Is it a single data file? or multiple data files? if it's multiple data files, what does that mean?

All given data files are concatenated; not sure whether this is a good feature but iirc pgp 2 did it the same way.

Interesting. i'm also not sure this is a good feature. I also still don't think the gpgv man page explains this clearly, but if you don't want to clarify it, i won't bother re-opening this issue.