On Thu, Sep 20, 2012 at 07:07:01AM +0100, Jason McIntyre wrote: > On Wed, Sep 19, 2012 at 06:44:29PM -0500, Amit Kulkarni wrote: > > shouldn't this order be flipped? > > > > the example does what its description says. why do you think it should > be reversed?
because people are often confused by symlinks? I always tell the confused: the order is the same as cp(1): the first argument needs to exits, the second one is created. -Otto > > jmc > > > Index: ln.1 > > =================================================================== > > RCS file: /cvs/src/bin/ln/ln.1,v > > retrieving revision 1.29 > > diff -u -p -r1.29 ln.1 > > --- ln.1 2 Mar 2011 07:47:21 -0000 1.29 > > +++ ln.1 19 Sep 2012 23:27:04 -0000 > > @@ -130,7 +130,7 @@ Create a symbolic link named > > and point it to > > .Pa /var/www : > > .Pp > > -.Dl # ln -s /var/www /home/www > > +.Dl # ln -s /home/www /var/www > > .Pp > > Hard link > > .Pa /usr/local/bin/fooprog