Subject: Re: ln.diff for bin/19431
To: Klaus Klein <kleink@reziprozitaet.de>
From: Jason R. Fink <jrf@adresearch.com>
List: tech-userlevel
Date: 12/19/2002 18:19:08
> Please add the usual blurb to STANDARDS.

I did.

> > @@ -96,6 +101,7 @@
> >  	argc -= optind;
> >  
> >  	linkf = sflag ? symlink : link;
> > +	linkch = sflag ? '-' : '=';
> >  
> >  	switch(argc) {
> >  	case 0:
> 
> Since it's the same condition this should rather be an if-then-else
> construct.

Uuuh, I dunno, let me double check that :)

> > @@ -162,6 +168,8 @@
> >  		warn("%s", source);
> >  		return (1);
> >  	}
> > +	if (vflag)
> > +		(void)printf("%s %c> %s\n", source, linkch, target);
> >  
> >  	return (0);
> >  }
> 
> Now you've made me curious. :-) I thought the whole point was to
> resemble the behaviour of GNU fileutils as closely as possible (or
> desirable?); fileutils ln prints "create {hard,symbolic} link '%s' to
> '%s'".  Is there prior art using the format you've chosen?

actually there was a reason for that, again let me take a look.
I was using FreeBSD's. 

I need to do a recheckout of src when I can as well.

Thanks for the feedback Klaus!

	j

-- 
Jay Fink http://pyxis.homeunix.net/
NetBSD Developer http://www.netbsd.org/
Senior SysAdmin/Programmer, Ipsos http://www.ipsos.com/