Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mandrill!gatech!ncar!ames!necntc!dandelion!ulowell!hawk!boneill From: boneill@hawk.ulowell.edu (SoftXc Coordinator) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: picnix3 mv Keywords: To a non-existent directory---phooom! Message-ID: <7449@swan.ulowell.edu> Date: 8 Jun 88 14:55:14 GMT References: <27734@clyde.ATT.COM> Sender: news@swan.ulowell.edu Reply-To: boneill@hawk.ulowell.edu (SoftXc Coordinator) Organization: University of Lowell, CS Dept. Lines: 23 In article <27734@clyde.ATT.COM> feg@clyde.ATT.COM (Forrest Gehrke) writes: >The corrected mv command with picnix3 still has a >small problem: If you should happen to request a >move of a file to a non-existent directory, it >"moves" it and deletes it from the source >directory---all silently. > >I did this accidentally, misspelling the name of >an existent directory. The file disappeared. > I was unable to recreate this problem. When you give the command 'mv name1 name2', it checks for the existence of name2. If it does not exist, name1 is renamed to name2. If it does exist, and it is a directory, the file is given the name name2\name1. When you mispelled the name of the directory, it should have created a file with the name you typed. If you gave a complete pathname, and mispelled one of the subdirectories, MV would have given you a 'CANNOT CREATE error'. ============================================================================ Brian O'Neill, MS-DOS Software Exchange Coordinator ArpaNet: boneill@hawk.ulowell.edu UUCP : {(backbones),harvard,rutgers,et. al.}!ulowell!hawk!boneill