summaryrefslogtreecommitdiff
path: root/tests/chmod/equals
diff options
context:
space:
mode:
Diffstat (limited to 'tests/chmod/equals')
-rwxr-xr-xtests/chmod/equals4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/chmod/equals b/tests/chmod/equals
index dfaad17e3..bed16fb3e 100755
--- a/tests/chmod/equals
+++ b/tests/chmod/equals
@@ -51,7 +51,7 @@ for src in u g o; do
for dest in u g o; do
test $dest = $src && continue
chmod a=,$src=rwx,$dest=$src,$src= f || fail=1
- set _ `ls -l f`; shift; actual_perms=$1
+ actual_perms=`ls -l f|cut -b-10`
expected_perms=`eval 'echo \$expected_'$dest`
test "$actual_perms" = "$expected_perms" || fail=1
done
@@ -59,7 +59,7 @@ done
umask 027
chmod a=,u=rwx,=u f || fail=1
-set _ `ls -l f`; shift; actual_perms=$1
+actual_perms=`ls -l f|cut -b-10`
test "$actual_perms" = "-rwxr-x---" || fail=1
(exit $fail); exit $fail