home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / question / 10430 < prev    next >
Encoding:
Text File  |  1992-08-27  |  1.1 KB  |  40 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!destroyer!ubc-cs!news.UVic.CA!sol.UVic.CA!lux
  3. From: lux@sol.UVic.CA (Michael O'Henly)
  4. Subject: How to delete link when target is rm'd?
  5. Message-ID: <lux.714915956@sol.UVic.CA>
  6. Summary: How do I automatically delete a symbolic link when the target is rm'd?
  7. Keywords: link target rm
  8. Sender: news@sol.UVic.CA
  9. Nntp-Posting-Host: sol.uvic.ca
  10. Organization: University of Victoria
  11. Date: 27 Aug 92 11:45:56 GMT
  12. Lines: 26
  13.  
  14.     Let's say I have a file...
  15.  
  16.         ~/dir1/dir2/file
  17.  
  18.     ...to which I create a symbolic link in the parent directory
  19. using the command, "ln ~/dir1/dir2/file ~/dir1/file".
  20.  
  21.     What I want is to be able to "rm ~/dir1/dir2/file" and have
  22. the link rm'd at the same time. 
  23.  
  24.     This seems to me to be the way things should work by default.
  25. After all, the thing that the link points to no longer exists so why
  26. is the link not automatically rm'd with the target?
  27.  
  28.     Thanks.
  29.  
  30.     Michael.
  31. --
  32. Michael O'Henly                 
  33. McPherson Library                Internet:  lux@sol.uvic.ca
  34. University of Victoria                      lux@uvvm.uvic.ca
  35. Victoria, B.C., Canada             BITNET:  lux@uvvm
  36.  
  37.  
  38.  
  39.  
  40.