summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2005-12-15 18:58:20 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2005-12-15 18:58:20 +0000
commitb7c426c0ab71127c57296139abd6065dad151a7f (patch)
treec070d45879a8949b76c4310ea7857071dd12e336 /tests
parent6dcd2807d7fad4f86baea9ce5370770949f97d50 (diff)
downloadcoreutils-b7c426c0ab71127c57296139abd6065dad151a7f.tar.xz
Port to pre-POSIX shells like Solaris 8 /bin/sh.
Don't assume /etc/passwd contains user names; use 'id' instead.
Diffstat (limited to 'tests')
-rw-r--r--tests/acl10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/acl b/tests/acl
index 2e232ee01..fdef618c4 100644
--- a/tests/acl
+++ b/tests/acl
@@ -1,18 +1,16 @@
-if ! getfacl --version 2> /dev/null 1>&2 || \
- ! setfacl --version 2> /dev/null 1>&2 ; then
+getfacl --version 2> /dev/null 1>&2 && setfacl --version 2> /dev/null 1>&2 || {
cat <<EOF 1>&2
**************************************
$0: This test requires getfacl and setfacl.
**************************************
EOF
(exit 77); exit 77
-fi
+}
-if ! grep '^bin:' /etc/passwd 2> /dev/null 1>&2 ; then
+id -u bin 2> /dev/null 1>&2 || {
cat <<EOF 1>&2
**************************************
$0: This test requires a local user named bin.
**************************************
EOF
- (exit 77); exit 77
-fi
+}