Re: argp --help infloop bug

2005-12-09 Thread Jim Meyering
"Sergey Poznyakoff" <[EMAIL PROTECTED]> wrote: > Jim Meyering <[EMAIL PROTECTED]> wrote: > >> You can make any argp-using program infloop simply by running it >> with --help and with something like ARGP_HELP_FMT=rmargin=a in the >> environment. Or use a valid (but small) width: ARGP_HELP_FMT=rmarg

Re: [Bug-tar] argp-help and program name

2005-12-09 Thread Sergey Poznyakoff
Eric Blake <[EMAIL PROTECTED]> wrote: > the same thing as what your new __argp_base_name does. Prior to my > dirname patch, the existing base_name does the same as your Thanks for noticing, I'll fix that. > Usually, module owners post their patches to bug-gnulib for review, so I > was a bit sur

Re: argp --help infloop bug

2005-12-09 Thread Sergey Poznyakoff
Jim Meyering <[EMAIL PROTECTED]> wrote: > You can make any argp-using program infloop simply by running it > with --help and with something like ARGP_HELP_FMT=rmargin=a in the > environment. Or use a valid (but small) width: ARGP_HELP_FMT=rmargin=2 Yes, indeed. Thanks for reporting. I will fix i

argp --help infloop bug

2005-12-09 Thread Jim Meyering
You can make any argp-using program infloop simply by running it with --help and with something like ARGP_HELP_FMT=rmargin=a in the environment. Or use a valid (but small) width: ARGP_HELP_FMT=rmargin=2 $ time ARGP_HELP_FMT=rmargin=2 tar --help > /dev/null ARGP_HELP_FMT=rmargin=2 tar --help >

Re: [Bug-tar] argp-help and program name

2005-12-09 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Sergey Poznyakoff on 12/9/2005 3:21 AM: > > Yes, and yet another function that assumes '/' as the directory > separator is argp_parser. While argp-help can be tweaked to use > base_name, it is harder to do so in argp_parser, since that wo

Re: ULONG_MAX on Solaris

2005-12-09 Thread Simon Josefsson
Ben Pfaff <[EMAIL PROTECTED]> writes: > Simon Josefsson <[EMAIL PROTECTED]> writes: > >> has ULONG_MAX in limits.h but not in stdlib.h. I believe C89 it to be >> in stdlib.h. > > I don't think so. In a quick search through C99, I only saw > ULONG_MAX mentioned as being defined in . I don't > th

Re: [Bug-tar] argp-help and program name

2005-12-09 Thread Sergey Poznyakoff
Eric Blake <[EMAIL PROTECTED]> wrote: > Further looking at the argp-help module shows that tries using > strrchr(program_invocation_name, '/') which is not portable Yes, and yet another function that assumes '/' as the directory separator is argp_parser. While argp-help can be tweaked to use base

Re: modules and program name

2005-12-09 Thread Sergey Poznyakoff
Eric Blake <[EMAIL PROTECTED]> wrote: > I noticed when compiling tar on cygwin that I got a warning: > if gcc -DHAVE_CONFIG_H -DLIBDIR=\"/usr/local/lib\" -I. -I. -I.. -g2 -Wall > -Werror -MT argp-help.o -MD -MP -MF ".deps/argp-help.Tpo" -c -o argp-help.o > argp-help.c; \ > then mv -f ".deps/