Re: less progname in r

2016-06-24 Thread Ted Unangst
Theo de Raadt wrote: > > I actually dislike how these programs behave when linked to. It is > rare. But it feels misleading somehow. Yes, I mentioned this in passing. It's somewhat contrived, but here's an example. $ cp /bin/ls ~/bin/ld $ ld -X ld: unknown option -- X usage: ld

Re: less progname in r

2016-06-24 Thread Todd C. Miller
On Fri, 24 Jun 2016 16:52:24 -0400, "Ted Unangst" wrote: > Yes, although I think it's kind of mindless copying. This code doesn't > benefit from progname. (Code that inspects argv[0] does benefit.) > > I doubt porting these programs is a high priority for anyone, but > nevertheles I prefer

Re: less progname in r

2016-06-24 Thread Theo de Raadt
> > Yes, although I think it's kind of mindless copying. This code doesn't > > benefit from progname. (Code that inspects argv[0] does benefit.) > > > > I doubt porting these programs is a high priority for anyone, but > > nevertheles I prefer standard code over nonstandard code. > > > > That

Re: less progname in r

2016-06-24 Thread Ted Unangst
Mark Kettenis wrote: > > From: "Ted Unangst" > > Date: Thu, 23 Jun 2016 21:57:00 -0400 > > > > These programs don't do anything interesting based on progname, > > except to echo is back to the user. If the user creates a link, is > > it somehow more correct to print that

Re: less progname in r

2016-06-24 Thread Mark Kettenis
> From: "Ted Unangst" > Date: Thu, 23 Jun 2016 21:57:00 -0400 > > These programs don't do anything interesting based on progname, > except to echo is back to the user. If the user creates a link, is > it somehow more correct to print that name? I'd argue the original > name