Subject: Re: ln.diff for bin/19431
To: Jason R. Fink <jrf@adresearch.com>
From: Klaus Klein <kleink@reziprozitaet.de>
List: tech-userlevel
Date: 12/19/2002 23:57:19
"Jason R. Fink" <jrf@adresearch.com> writes:

> Index: ln.1
> [...]

Please add the usual blurb to STANDARDS.

> @@ -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.

> @@ -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?


- Klaus