From: Jim Meyering Date: Fri, 29 Dec 2000 08:58:25 +0000 (+0000) Subject: Try /usr/xpg4/bin/id (Solaris 7) if plain 'id' doesn't work. X-Git-Tag: FILEUTILS-4_0_36~147 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=de577f34401adf137c0d1994be140753f7cfc0bd;p=thirdparty%2Fcoreutils.git Try /usr/xpg4/bin/id (Solaris 7) if plain 'id' doesn't work. --- diff --git a/tests/group-names b/tests/group-names index ee1e5b94d4..94a7f79e26 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 <&2