Article View: comp.sys.apple2.gno
Article #265MV bug (?)
From: Phillip Vandry
Date: Sat, 14 Nov 1992 20:50
Date: Sat, 14 Nov 1992 20:50
17 lines
1045 bytes
1045 bytes
I noticed a problem with the mv portion of cp. Consider this: mv /ram5/dir1 /ram5/dir2 There are 2 possible interpretations: Move dir1 and its contents into dir2 and rename dir1 to dir2. Logically, if dir2 exists, the former should be performed, while if dir2 does not exist, the latter should happen. The problem is that, rather than doing the second option if dir2 does not exist, mv tries to move dir1 into dir2 anyway. An error happens. I would fix it myself, I figured out how, but I have no C compiler! __ __ _ __ |_) |_| | | | | |_) | | /_\ |\ | |\ |_) \_/ % NetMail: % | | | | |_ |_ | | \/ | | | \| |/ |\ | % Vandry@Cam.Org %
Technical Details
Message-ID:
<Bxq4K3.H3F@CAM.ORG>Path:
arc1-ca.pugleaf.net!sparky!uunet!newsflash.concordia.ca!IRO.UMontreal.CA!matrox!altitude!vandryShow Full Headers
Complete Article Headers
Newsgroups: comp.sys.apple2.gno Path: arc1-ca.pugleaf.net!sparky!uunet!newsflash.concordia.ca!IRO.UMontreal.CA!matrox!altitude!vandry From: vandry@CAM.ORG (Phillip Vandry) Subject: MV bug (?) Message-ID: <Bxq4K3.H3F@CAM.ORG> Organization: Champlain Regional College, St-Lambert QC CANADA Date: Sat, 14 Nov 1992 20:50:25 GMT Lines: 17