summaryrefslogtreecommitdiff
path: root/tests/cp
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-09-09 08:27:52 +0000
committerJim Meyering <jim@meyering.net>2000-09-09 08:27:52 +0000
commit6f98f91fad86ce4040e794eac78b161761881f79 (patch)
tree61a4d38e896f95bbd6c7879044b292ea39dcbd7f /tests/cp
parenta2e3399aa2691f7263c9811f0afae45b3b607054 (diff)
downloadcoreutils-6f98f91fad86ce4040e794eac78b161761881f79.tar.xz
*** empty log message ***
Diffstat (limited to 'tests/cp')
-rwxr-xr-xtests/cp/special-bits7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/cp/special-bits b/tests/cp/special-bits
index ebc658dce..ed79a7a19 100755
--- a/tests/cp/special-bits
+++ b/tests/cp/special-bits
@@ -41,6 +41,13 @@ fi
fail=0
cp -p a a2 || fail=1
+set _ `ls -l a`; shift; a_perms=$1
+set _ `ls -l a2`; shift; a2_perms=$1
+test $a_perms = $a2_perms || fail=1
+
cp -p b b2 || fail=1
+set _ `ls -l b`; shift; b_perms=$1
+set _ `ls -l b2`; shift; b2_perms=$1
+test $b_perms = $b2_perms || fail=1
(exit $fail); exit