We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b552bd9 commit 35d2e02Copy full SHA for 35d2e02
cp-arch-test.sh
@@ -0,0 +1,18 @@
1
+set -e
2
+rm -rf dir
3
+mkdir dir
4
+echo "a" > dir/1
5
+echo "b" > dir/2
6
+touch -d "2 hours ago" dir/1
7
+chmod 705 dir/*
8
+cd dir
9
+ln -s 1 1.link
10
+ln -s 2 2.link
11
+cd -
12
+cp --archive dir dir-copy-archive
13
+ls -al dir-copy-archive|grep "rwx---r-x"
14
+ls -al dir-copy-archive|grep "1.link -> 1"
15
+./target/debug/coreutils cp --archive -v dir dir-copy-archive-rust
16
+ls -al dir-copy-archive-rust|grep "rwx---r-x"
17
+# les symlinks ne sont pas créés
18
+ls -al dir-copy-archive-rust|grep "1.link -> 1"
0 commit comments