Re: getprogname and libtool

2016-12-18 Thread Jim Meyering
On Sat, Dec 17, 2016 at 3:27 PM, Bruno Haible wrote: > Followup to this discussion from October 2016: > > Jim: >> > I did not mean to imply by that message that we should eliminate every >> > use of the program_name module. My desire is more to avoid accidental >> > use of it

Re: getprogname and libtool

2016-12-17 Thread Bruno Haible
Followup to this discussion from October 2016: Jim: > > I did not mean to imply by that message that we should eliminate every > > use of the program_name module. My desire is more to avoid accidental > > use of it when the getprogname module would be more appropriate. Bruno: > Fully agree on

Re: getprogname and libtool

2016-10-18 Thread Bruno Haible
Jim Meyering wrote: > > + if (strncmp (p, "lt-", 3) == 0) > > +p = p + 3; > > Thank you. > You are welcome to push that, even though I prefer the more concise "p += 3;" Thanks for the review. Pushed with your suggested edit. Bruno

Re: getprogname and libtool

2016-10-18 Thread Jim Meyering
On Tue, Oct 18, 2016 at 3:32 PM, Bruno Haible wrote: > Hi Jim, ... > 2016-10-18 Bruno Haible > > getprogname tests: Avoid failure in packages that use libtool. > * tests/test-getprogname.c (main): Strip "lt-" prefix. > Based on a patch

Re: getprogname and libtool

2016-10-18 Thread Bruno Haible
Hi Jim, > > In summary, I like Pino's 'getprogname' module because it nicely solves the > > problems he listed in > > http://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00048.html. > > > > But I disagree with the idea that the 'program_name' module and the > > set_program_name() function

Re: getprogname and libtool

2016-10-18 Thread Jim Meyering
On Tue, Oct 18, 2016 at 2:29 PM, Bruno Haible wrote: > Daiki Ueno wrote: >> > The consequence is that in packages that use GNU libtool, such programs >> > will >> > print "lt-prog" instead of "prog" in their usage message and other >> > messages. >> > This will disturb >> > *

Re: getprogname and libtool

2016-10-18 Thread Bruno Haible
Daiki Ueno wrote: > > The consequence is that in packages that use GNU libtool, such programs will > > print "lt-prog" instead of "prog" in their usage message and other messages. > > This will disturb > > * the hacker who uses the programs before doing "make install", > > * the test suite. >

Re: getprogname and libtool

2016-10-18 Thread Jim Meyering
On Tue, Oct 18, 2016 at 12:07 PM, Daiki Ueno wrote: > Bruno Haible writes: > >> The consequence is that in packages that use GNU libtool, such programs will >> print "lt-prog" instead of "prog" in their usage message and other messages. >> This will disturb >> *

Re: getprogname and libtool

2016-10-18 Thread Daiki Ueno
Bruno Haible writes: > The consequence is that in packages that use GNU libtool, such programs will > print "lt-prog" instead of "prog" in their usage message and other messages. > This will disturb > * the hacker who uses the programs before doing "make install", > * the