GNU bug report logs -
#10897
copy-directory create new directory when copying a symlink
Previous Next
Reported by: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>
Date: Mon, 27 Feb 2012 08:51:02 UTC
Severity: minor
Tags: confirmed
Found in version 25.1
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #63 received at control <at> debbugs.gnu.org (full text, mbox):
tags 10897 confirmed
found 10897 25.1
severity 10897 minor
quit
Thierry Volpiatto <thierry.volpiatto <at> gmail.com> writes:
> Hi all,
> when copying a directory symlink to another directory, the behavior of
> 'cp' is to create a new symlink in this directory:
>
> thierry <at> thierry-MM061:~ $ mkdir ~/Test
> thierry <at> thierry-MM061:~ $ mkdir ~/tmp/Test1
> thierry <at> thierry-MM061:~ $ ln -s ~/tmp/Test1 ~/tmp/foo
> thierry <at> thierry-MM061:~ $ cp -r ~/tmp/foo ~/Test
> thierry <at> thierry-MM061:~ $ ls -l ~/Test
> total 0
> lrwxrwxrwx 1 thierry thierry 23 2012-02-27 09:08 foo -> /home/thierry/tmp/Test1
>
>
> It is not what's copy-directory does:
>
> (copy-directory "~/tmp/foo" "~/Test" nil t)
> =>
> thierry <at> thierry-MM061:~ $ ls -l ~/Test
> total 4
> drwxrwxr-x 2 thierry thierry 4096 2012-02-27 09:11 foo
>
> NOTE:
> I am not sending this bug-report via report-emacs-bug due to its last
> silly modifications.
This bug report was last modified 4 years ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.