From 69b06c50c4a2a94adbf0ca1d3eaef02fab511390 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Fri, 22 Mar 2002 05:06:36 +0000 Subject: [PATCH] Use `id -G` rather than `groups` to get a list of groups for this user, so that we can cope on systems like Cygwin that tend to have group names containing spaces. --- testsuite/chgrp.test | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/testsuite/chgrp.test b/testsuite/chgrp.test index 3bcd0d5e..8cc89e04 100644 --- a/testsuite/chgrp.test +++ b/testsuite/chgrp.test @@ -18,7 +18,9 @@ set -x fromdir="$scratchdir/from" todir="$scratchdir/to" -mygrps="`groups`" || fail "Can't get groups" +# TODO: I guess some systems will not have 'id', and therefore we have +# to ship or emulate it. +mygrps="`id -G`" || fail "Can't get groups" mkdir "$fromdir" for g in $mygrps -- 2.34.1