From owner-freebsd-stable Tue Oct 9 17:32:14 2001 Delivered-To: freebsd-stable@freebsd.org Received: from lists.blarg.net (lists.blarg.net [206.124.128.17]) by hub.freebsd.org (Postfix) with ESMTP id 4BA9537B408 for ; Tue, 9 Oct 2001 17:32:10 -0700 (PDT) Received: from thig.blarg.net (thig.blarg.net [206.124.128.18]) by lists.blarg.net (Postfix) with ESMTP id DBE1ABCF9; Tue, 9 Oct 2001 17:32:09 -0700 (PDT) Received: from localhost.localdomain ([206.124.139.115]) by thig.blarg.net (8.9.3/8.9.3) with ESMTP id RAA15796; Tue, 9 Oct 2001 17:32:09 -0700 Received: (from jojo@localhost) by localhost.localdomain (8.11.6/8.11.3) id f9A0Z4h00668; Tue, 9 Oct 2001 17:35:04 -0700 (PDT) (envelope-from swear@blarg.net) To: Nicolas Rachinsky Cc: freebsd-stable@FreeBSD.ORG Subject: Re: cp -i -R References: <20011009161204.A22196@pc5.abc> <3.0.5.32.20011009095525.031a30f0@mail.sage-american.com> <20011009172052.A37340@pc5.abc> From: swear@blarg.net (Gary W. Swearingen) Date: 09 Oct 2001 17:35:03 -0700 In-Reply-To: <20011009172052.A37340@pc5.abc> Message-ID: Lines: 21 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Nicolas Rachinsky writes: > nicolas@pc5 ~> cd test > nicolas@pc5 ~/test> mkdir target > nicolas@pc5 ~/test> cp /kernel target > nicolas@pc5 ~/test> ln -s nonexistent kernel ... > nicolas@pc5 ~/test> cp -R -i kernel target > nicolas@pc5 ~/test> cd target > nicolas@pc5 ~/test/target> ls -l > total 0 > lrwxr-xr-x 1 nicolas users 11 Oct 9 17:08 kernel@ -> nonexistent Then do "cp -i /kernel target" and instead of asking if you want to clobber "target/kernel", it creates "target/nonexistent"! Maybe that's old, well-known behaviour, but it sure suprised this long-time UnX user. (Similar to my suprise that some commands treat "dirname" and "dirname/" differently. I suppose I should try harder to remember which ones. And get around to getting that behavior into the man pages.) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message