[tlbuild] Test suite failing in libs/paper

Peter Breitenlohner peb at mppmu.mpg.de
Thu Nov 21 08:53:10 CET 2013


On Wed, 20 Nov 2013, Marc Baudoin wrote:

> It looks like the psnup code is wrong.  getopt() specifies the -1
> to -9 options need an optional argument (because they are
> followed by a double colon) so they swallow the input file as
> their argument and psnup believes playnup.ps is its input file.

Hi Marc,

good catch, an other case of getopt with GNU extensions.  Should now be
fixed.

In GNU getopt the optional argument must immediately follow the option
letter, i.e., "-12" is interpreted as option "-1" with optarg "2", but
"-1 file" is interpreted as option "-1" without optarg and "file" is the
next parameter.  It seems NetBSD getopt interprets "1::" in optstring as if
it were "1:", i.e., assumes that "-1" requires a mandatory argument.

Regards
Peter


More information about the tlbuild mailing list