tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* behaviour of ln under du4.0d
@ 1998-08-10 14:51 Bob Parkinson
  0 siblings, 0 replies; only message in thread
From: Bob Parkinson @ 1998-08-10 14:51 UTC (permalink / raw)
  To: tru64-unix-managers

I've got two directories, 1998-10-10 and 1998-10-09, like this:

omni:root> ls -lR
total 2
drwxr-xr-x   2 root     users        512 Aug 10 15:33 1998-10-09
drwxr-xr-x   2 root     users        512 Aug 10 15:35 1998-10-10
lrwxrwxrwx   1 root     users         10 Aug 10 15:39 current -> 1998-10-09

./1998-10-09:
total 0

./1998-10-10:
total 0
omni:root> 

I want a cron job to relink current to the 'next' directory, ie 1998-10-10
in example. So I type;

omni:root> ln -fs 1998-10-10 current

then get;

omni:root> ls -lR
total 2
drwxr-xr-x   2 root     users        512 Aug 10 15:42 1998-10-09
drwxr-xr-x   2 root     users        512 Aug 10 15:35 1998-10-10
lrwxrwxrwx   1 root     users         10 Aug 10 15:39 current -> 1998-10-09

./1998-10-09:
total 0
lrwxrwxrwx   1 root     users         10 Aug 10 15:42 1998-10-10 -> 1998-10-10

./1998-10-10:
total 0
omni:root> 

The man page for ln says about -f;

FLAGS

  -f  Forces the removal of existing target path names before linking.


but this is not happening. However, something else is, this is the
creation of a link under dir. 1998-10-09, to itself.

I'm confused here. I guess I'm not RTFM'ing properly, but I can't see
whats happening.

Bob

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-08-10 14:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-10 14:51 behaviour of ln under du4.0d Bob Parkinson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox