Andreas Schwab wrote:
> Eric Blake <[EMAIL PROTECTED]> writes:
> > Use -T (a GNU extension, not available in all ln implementations)
> > to guarantee the first form.
> 
> ln -sn is more widely available.

If portability is a concern then the only option is remove the target
first.  SysV based systems do not have the -n option.  Your example:

  mkdir targ
  ln -s targ src
  ll -rt
  drwxr-xr-x  2 cwbspr2 wbspr2   4096 Dec  6 15:49 targ
  lrwxrwxrwx  1 cwbspr2 wbspr2      4 Dec  6 15:49 src -> targ

Would then be like this:

  rm -f src
  mkdir targ
  ln -s targ src

Bob


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to