From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#10897: copy-directory create new directory when copying a symlink Date: Mon, 27 Feb 2012 09:47:02 +0100 Message-ID: <874nuchddl.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1330332504 11713 80.91.229.3 (27 Feb 2012 08:48:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 27 Feb 2012 08:48:24 +0000 (UTC) To: 10897@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 27 09:48:23 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S1wFq-0005DW-Tc for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Feb 2012 09:48:23 +0100 Original-Received: from localhost ([::1]:57460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1wFq-0000oW-FB for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Feb 2012 03:48:22 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33352) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1wFn-0000nv-37 for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2012 03:48:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1wFg-000698-P5 for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2012 03:48:18 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56971) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1wFg-000694-LH for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2012 03:48:12 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1S1wIQ-0004LD-7k for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2012 03:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Feb 2012 08:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 10897 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.133033262816641 (code B ref -1); Mon, 27 Feb 2012 08:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Feb 2012 08:50:28 +0000 Original-Received: from localhost ([127.0.0.1]:58867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S1wHs-0004KM-6H for submit@debbugs.gnu.org; Mon, 27 Feb 2012 03:50:28 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43200) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1S1wHp-0004KF-S6 for submit@debbugs.gnu.org; Mon, 27 Feb 2012 03:50:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1wF0-00064O-B8 for submit@debbugs.gnu.org; Mon, 27 Feb 2012 03:47:35 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:52932) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1wF0-00064K-84 for submit@debbugs.gnu.org; Mon, 27 Feb 2012 03:47:30 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1wEu-0000mi-4v for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2012 03:47:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S1wEl-00063O-MQ for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2012 03:47:23 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:58588) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S1wEl-00063E-Fu for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2012 03:47:15 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S1wEh-0004hc-4g for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2012 09:47:11 +0100 Original-Received: from lbe83-2-78-243-104-167.fbx.proxad.net ([78.243.104.167]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Feb 2012 09:47:11 +0100 Original-Received: from thierry.volpiatto by lbe83-2-78-243-104-167.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Feb 2012 09:47:11 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: lbe83-2-78-243-104-167.fbx.proxad.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) Cancel-Lock: sha1:7m7iFs+PH93gUTU8Id5T8eOmY24= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:57275 Archived-At: Hi all, when copying a directory symlink to another directory, the behavior of 'cp' is to create a new symlink in this directory: --8<---------------cut here---------------start------------->8--- thierry@thierry-MM061:~ $ mkdir ~/Test thierry@thierry-MM061:~ $ mkdir ~/tmp/Test1 thierry@thierry-MM061:~ $ ln -s ~/tmp/Test1 ~/tmp/foo thierry@thierry-MM061:~ $ cp -r ~/tmp/foo ~/Test thierry@thierry-MM061:~ $ ls -l ~/Test total 0 lrwxrwxrwx 1 thierry thierry 23 2012-02-27 09:08 foo -> /home/thierry/tmp/Test1 --8<---------------cut here---------------end--------------->8--- It is not what's copy-directory does: --8<---------------cut here---------------start------------->8--- (copy-directory "~/tmp/foo" "~/Test" nil t) => thierry@thierry-MM061:~ $ ls -l ~/Test total 4 drwxrwxr-x 2 thierry thierry 4096 2012-02-27 09:11 foo --8<---------------cut here---------------end--------------->8--- NOTE: I am not sending this bug-report via report-emacs-bug due to its last silly modifications. -- Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997