On 10 Nov 2007, at 23:44, Martin Costabel wrote: > Jean-François Mertens wrote: >> Please _ for my own education _ : I don't see what difference the >> "h" or "n" options make in case of symbolic links ("-s") : don't you >> write yourself explicitly the name of the target in the command then? > > The difference is the following: > Suppose A and B are directories and you made a symlink C->A via > > ln -s A C > > Now suppose you want to change the link C to point to B instead of > A. If you execute > > ln -sf B C > > you won't get the desired result. You will instead get a symlink B- > >B inside A. You need to say > > ln -sfn B C > > to change the symlink C->A to C->B.
Oh ! would have thought naively that -f alone already have this effect... but I know I have the habit (but thought it was just excess precaution) to rm existing symlinks before creating new ones .. Just tested your example with coreutils' ln too : as you said... And a VERY careful reading of the man page confirms ... Thanks ! Jean-Francois ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Fink-users mailing list Fink-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-users