summaryrefslogtreecommitdiff
path: root/tests/group-names
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-12-29 08:58:25 +0000
committerJim Meyering <jim@meyering.net>2000-12-29 08:58:25 +0000
commitde577f34401adf137c0d1994be140753f7cfc0bd (patch)
treeea8e0a54deffdaf3ea50a0e7d40b3dda2670bb63 /tests/group-names
parent9f0489df43e55f93c6fd63533226cd54cebace55 (diff)
downloadcoreutils-de577f34401adf137c0d1994be140753f7cfc0bd.tar.xz
Try /usr/xpg4/bin/id (Solaris 7) if plain 'id' doesn't work.
Diffstat (limited to 'tests/group-names')
-rw-r--r--tests/group-names2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/group-names b/tests/group-names
index ee1e5b94d..94a7f79e2 100644
--- a/tests/group-names
+++ b/tests/group-names
@@ -2,7 +2,7 @@
# Set `groups' to a space-separated list of at least two groups of which
# the user is a member.
-groups=${FETISH_GROUPS-`id -nG 2>/dev/null`}
+groups=${FETISH_GROUPS-`(id -nG || /usr/xpg4/bin/id -nG) 2>/dev/null`}
case "$groups" in
*' '*) ;;
*) cat <<EOF 1>&2