On 19/10/2007, Edd Barrett <[EMAIL PROTECTED]> wrote: > On 18/10/2007, Richard Toohey <[EMAIL PROTECTED]> wrote: > > > $ mkdir foo > > > $ cp -R foo foo > > Ill try this on a solaris box and a linix box tomorrow at work :P
I beat you to trying it on Linux (Ubuntu "Gutsy Gibbon" 7.10): [EMAIL PROTECTED]:~$ uname --all Linux tranquility 2.6.22-14-386 #1 Sun Oct 14 22:36:54 GMT 2007 i686 GNU/Linux [EMAIL PROTECTED]:~$ echo $SHELL /bin/bash [EMAIL PROTECTED]:~$ mkdir foo [EMAIL PROTECTED]:~$ cp -R foo foo cp: cannot copy a directory, `foo', into itself, `foo/foo' [EMAIL PROTECTED]:~$ IMHO cp behaving like this is somewhat nicer than its current behaviour on apparently most or all BSD OSes. Then again, I STILL can't code, so I've no right to complain. ;o)