Subject: Re: uugetty for NetBSD
To: None <mike.long@analog.com>
From: Tim Newsham <newsham@aloha.net>
List: current-users
Date: 10/31/1996 08:57:21
> I agree with der Mouse that adding argv[0]-sensitive behavior to
> standard utilities is a bad idea.  Precedent is not an excuse.

I dont know what the big deal is.  First
symlinks are easy to create.  Second if you have something
against symlinks, you *can* supply argv[0],
contrary to what has been said previously.  It doesnt
take a genius to come up with:

#include <stdio.h>
 
int
main(argc, argv)
int argc;
char *argv[];
{
    char *path;
 
    if(argc < 3) {
        fprintf(stderr, "usage: %s prog argv[0] args\n", argv[0]);
        exit(1);
    }
    execvp(argv[1], &argv[2]);
    perror(argv[1]);
}

with such a program you dont have to bother writing
wrappers to alter the behavior of programs.

> Mike Long <mike.long@analog.com>     <URL:http://www.shore.net/~mikel>