'mv foo ..' when . is foo

Curtis Jackson rcj at burl.UUCP
Mon Aug 26 00:42:27 AEST 1985


I am running Sys V r2, and here is what happens when I do what you talked
about as root:

# mkdir foo
# cd foo
# touch foo
# mv foo ..
# pwd
/emsp/rcj/test/foo
# cd ..
# ls -ld foo
-rw-r--r--   1 root     sys            0 Aug 25 10:36 foo
# cd foo
mycd: foo: bad directory
#

So the behavior is apparently different from both your Sys V port and
from 4.?BSD.
-- 

The MAD Programmer -- 919-228-3313 (Cornet 291)
alias: Curtis Jackson	...![ ihnp4 ulysses cbosgd mgnetp ]!burl!rcj
			...![ ihnp4 cbosgd akgua masscomp ]!clyde!rcj



More information about the Net.bugs mailing list