From owner-freebsd-hackers Wed Apr 10 15:21:35 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from pintail.mail.pas.earthlink.net (pintail.mail.pas.earthlink.net [207.217.120.122]) by hub.freebsd.org (Postfix) with ESMTP id 1A50A37B41F for ; Wed, 10 Apr 2002 15:21:32 -0700 (PDT) Received: from pool0071.cvx40-bradley.dialup.earthlink.net ([216.244.42.71] helo=mindspring.com) by pintail.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 16vQSu-0001VE-00; Wed, 10 Apr 2002 15:21:21 -0700 Message-ID: <3CB4BAC7.450246A4@mindspring.com> Date: Wed, 10 Apr 2002 15:20:55 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Bogdan TARU Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: 'rm' incompatibility with Posix.2 References: <20020410171808.K82564-100000@fw.cgn.icom> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Bogdan TARU wrote: > If ending a symlink with a slash is supposed to mean 'refer to the > directory it points to', I imagine ending a directory with a slash is even > more so. Then why, oh, why, 'cp -R' copies only the content of the > directory in the new location???? > > man cp: > > -R If source_file designates a directory, cp copies the directory and > the entire subtree connected at that point. > > Why do I have the feeling something goes terribly wrong here? A blank path component implies ".". It always has in BSD. There are man pages to this effect (though you will have to zgrep for them yourself). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message