Re: Bug or feature? replace symlink to directory with ln -fs does not work

2005-05-24 Thread Bob Proulx
Just to tie the archive together, here is a previous discussion: http://lists.gnu.org/archive/html/bug-fileutils/2003-10/msg0.html Paul Eggert wrote: [EMAIL PROTECTED] (Bob Proulx) writes: Only -s and -f are required. Yes, but POSIX requires the GNU ln behavior that the original

Re: Bug or feature? replace symlink to directory with ln -fs does not work

2005-05-24 Thread Paul Eggert
[EMAIL PROTECTED] (Bob Proulx) writes: I am not convinced POSIX says this. We would have to dig into exactly what is meant by destination in the standard and how that differs from or is the same as target_dir. Here's my reasoning.

Bug or feature? replace symlink to directory with ln -fs does not work

2005-05-23 Thread Peter Kratzer
Dear friends, I have encountered a problem using the command ln -sf to replace a symlink to a directory by a symlink to a different directory. Working in a heterogenous environment with GNU/Linux and HP-UX workstations I found a different behaviour in this command's handling on the two operating

Re: Bug or feature? replace symlink to directory with ln -fs does not work

2005-05-23 Thread Jim Meyering
Peter Kratzer [EMAIL PROTECTED] wrote: I have encountered a problem using the command ln -sf to replace a symlink to a directory by a symlink to a different directory. `ln -nsf' should do what you want. ___ Bug-coreutils mailing list

Re: Bug or feature? replace symlink to directory with ln -fs does not work

2005-05-23 Thread Paul Eggert
Peter Kratzer [EMAIL PROTECTED] writes: Contrary to the Unix behaviour (e.g. HP-UX) using this command on a GNU/Linux system does not replace the link, but creates a new link in the originally referenced directory. Actually, HP-UX is the odd man out here. GNU ln is compatible with Solaris

Re: Bug or feature? replace symlink to directory with ln -fs does not work

2005-05-23 Thread Bob Proulx
Peter Kratzer [EMAIL PROTECTED] writes: Contrary to the Unix behaviour (e.g. HP-UX) using this command on a GNU/Linux system does not replace the link, but creates a new link in the originally referenced directory. This has appeared as a portability problem a number of times in the past. If