summaryrefslogtreecommitdiff
path: root/tests/chmod/equals
diff options
context:
space:
mode:
Diffstat (limited to 'tests/chmod/equals')
-rwxr-xr-xtests/chmod/equals6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/chmod/equals b/tests/chmod/equals
index 54c39aedf..fd92055c2 100755
--- a/tests/chmod/equals
+++ b/tests/chmod/equals
@@ -32,15 +32,15 @@ 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
- actual_perms=`ls -l f|cut -b-10`
- expected_perms=`eval 'echo \$expected_'$dest`
+ actual_perms=$(ls -l f|cut -b-10)
+ expected_perms=$(eval 'echo $expected_'$dest)
test "$actual_perms" = "$expected_perms" || fail=1
done
done
umask 027
chmod a=,u=rwx,=u f || fail=1
-actual_perms=`ls -l f|cut -b-10`
+actual_perms=$(ls -l f|cut -b-10)
test "$actual_perms" = "-rwxr-x---" || fail=1
Exit $fail