home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!destroyer!ubc-cs!news.UVic.CA!sol.UVic.CA!lux
- From: lux@sol.UVic.CA (Michael O'Henly)
- Subject: How to delete link when target is rm'd?
- Message-ID: <lux.714915956@sol.UVic.CA>
- Summary: How do I automatically delete a symbolic link when the target is rm'd?
- Keywords: link target rm
- Sender: news@sol.UVic.CA
- Nntp-Posting-Host: sol.uvic.ca
- Organization: University of Victoria
- Date: 27 Aug 92 11:45:56 GMT
- Lines: 26
-
- Let's say I have a file...
-
- ~/dir1/dir2/file
-
- ...to which I create a symbolic link in the parent directory
- using the command, "ln ~/dir1/dir2/file ~/dir1/file".
-
- What I want is to be able to "rm ~/dir1/dir2/file" and have
- the link rm'd at the same time.
-
- This seems to me to be the way things should work by default.
- After all, the thing that the link points to no longer exists so why
- is the link not automatically rm'd with the target?
-
- Thanks.
-
- Michael.
- --
- Michael O'Henly
- McPherson Library Internet: lux@sol.uvic.ca
- University of Victoria lux@uvvm.uvic.ca
- Victoria, B.C., Canada BITNET: lux@uvvm
-
-
-
-
-