Re: mv: cannot move `dir' to a subdirectory of itself, `../dir'

2007-08-14 Thread Andreas Schwab
Phillip Susi <[EMAIL PROTECTED]> writes: > Andreas Schwab wrote: >> "Chris Moore" <[EMAIL PROTECTED]> writes: >> >>> $ mv dir .. >>> mv: cannot move `dir' to a subdirectory of itself, `../dir' >> >> With coreutils 6.9 yo

Re: mv: cannot move `dir' to a subdirectory of itself, `../dir'

2007-08-14 Thread Phillip Susi
Andreas Schwab wrote: "Chris Moore" <[EMAIL PROTECTED]> writes: $ mv dir .. mv: cannot move `dir' to a subdirectory of itself, `../dir' With coreutils 6.9 you'll get "Directory not empty". That also seems incorrect. Shouldn't the error be

Re: mv: cannot move `dir' to a subdirectory of itself, `../dir'

2007-08-14 Thread Andreas Schwab
"Chris Moore" <[EMAIL PROTECTED]> writes: > $ mv dir .. > mv: cannot move `dir' to a subdirectory of itself, `../dir' With coreutils 6.9 you'll get "Directory not empty". Andreas. -- Andreas Schwab, SuSE Labs, [EMAIL PROTECTED] SuSE Linux

mv: cannot move `dir' to a subdirectory of itself, `../dir'

2007-08-14 Thread Chris Moore
18:36 .. -rw-r--r-- 1 chris chris 0 2007-08-14 18:37 x $ mv dir .. mv: cannot move `dir' to a subdirectory of itself, `../dir' $ rm ../dir/x $ ls -al ../dir dir dir: total 20 drwxr-xr-x 2 chris chris 4096 2007-08-14 18:37 . drwxr-xr-x 3 chris chris 4096 2007-08-14 18:36 .. -rw-r--r-- 1 c