[tlbuild] Test suite failing in libs/paper

Marc Baudoin babafou at babafou.eu.org
Thu Nov 21 09:27:43 CET 2013


Peter Breitenlohner <peb at mppmu.mpg.de> écrit :
> 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.
> 
> good catch, an other case of getopt with GNU extensions.  Should now be
> fixed.

I just checked and it's OK now, thanks!

> 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.

I love portability issues, that's what make UNIX fun ;-)


More information about the tlbuild mailing list