消息 [141821]
> Doing what UNIX’ cp program does would be best here.
$ cp --version
cp (GNU coreutils) 8.5
$ touch file
$ ln -s file link_to_file
$ mkdir directory
$ ln -s directory link_to_directory
$ cp -a link_to_file link_to_directory
$ ls -l directory
lrwxrwxrwx 1 user user 4 2011-08-09 17:46 link_to_file -> file
So at least cp from GNU coreutils seems to copy the link into the directory, dereferencing the dst link. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2011-08-09 14:50:40 | petri.lehtinen | 修改 | recipients:
+ petri.lehtinen, tarek, eric.araujo, hynek |
| 2011-08-09 14:50:40 | petri.lehtinen | 修改 | messageid: <1312901440.45.0.0873680103604.issue12715@psf.upfronthosting.co.za> |
| 2011-08-09 14:50:39 | petri.lehtinen | 链接 | issue12715 messages |
| 2011-08-09 14:50:39 | petri.lehtinen | 创建 | |
|