home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / apple2 / gno / 329 < prev    next >
Encoding:
Text File  |  1992-11-16  |  1019 b   |  27 lines

  1. Newsgroups: comp.sys.apple2.gno
  2. Path: sparky!uunet!newsflash.concordia.ca!IRO.UMontreal.CA!matrox!altitude!vandry
  3. From: vandry@CAM.ORG (Phillip Vandry)
  4. Subject: MV bug (?)
  5. Message-ID: <Bxq4K3.H3F@CAM.ORG>
  6. Organization: Champlain Regional College, St-Lambert QC  CANADA
  7. Date: Sat, 14 Nov 1992 20:50:25 GMT
  8. Lines: 17
  9.  
  10.  
  11. I noticed a problem with the mv portion of cp. Consider this:
  12.  
  13. mv /ram5/dir1 /ram5/dir2
  14.  
  15. There are 2 possible interpretations: Move dir1 and its contents into dir2
  16. and rename dir1 to dir2. Logically, if dir2 exists, the former should be
  17. performed, while if dir2 does not exist, the latter should happen.
  18.  
  19. The problem is that, rather than doing the second option if dir2 does not
  20. exist, mv tries to move dir1 into dir2 anyway. An error happens.
  21.  
  22. I would fix it myself, I figured out how, but I have no C compiler!
  23.  
  24. __                __          _          __
  25. |_) |_| | |  |  | |_)   |  | /_\ |\ | |\ |_) \_/  % NetMail:          %
  26. |   | | | |_ |_ | |      \/  | | | \| |/ |\   |   %   Vandry@Cam.Org  %
  27.