summaryrefslogtreecommitdiff
path: root/tests/misc/mknod
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/mknod')
-rwxr-xr-xtests/misc/mknod6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/misc/mknod b/tests/misc/mknod
index 09334b826..b9e33ad2d 100755
--- a/tests/misc/mknod
+++ b/tests/misc/mknod
@@ -25,15 +25,15 @@ mkfifo_or_skip_ fifo
umask 777
mknod -m 734 f1 p || fail=1
-mode=`ls -dgo f1|cut -b-10`
+mode=$(ls -dgo f1|cut -b-10)
test $mode = prwx-wxr-- || fail=1
mkfifo -m 734 f2 || fail=1
-mode=`ls -dgo f2|cut -b-10`
+mode=$(ls -dgo f2|cut -b-10)
test $mode = prwx-wxr-- || fail=1
mkdir -m 734 f3 || fail=1
-mode=`ls -dgo f3|cut -b-10`
+mode=$(ls -dgo f3|cut -b-10)
test $mode = drwx-wxr-- || test $mode = drwx-wsr-- || fail=1
Exit $fail