1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-06 00:29:44 +02:00

Use group-names.

This commit is contained in:
Jim Meyering
2000-12-16 09:23:10 +00:00
parent be74434bbd
commit 8233adab59
2 changed files with 4 additions and 22 deletions
+2 -11
View File
@@ -6,6 +6,8 @@ if test "$VERBOSE" = yes; then
chgrp --version
fi
. $srcdir/../group-names
pwd=`pwd`
tmp=slink.$$
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
@@ -20,17 +22,6 @@ if test $framework_failure = 1; then
(exit 1); exit
fi
groups=`id -nG 2>/dev/null`
case "$groups" in
*' '*) ;;
*) cat <<EOF 1>&2
$0: this test requires that you be a member of more than one group,
but running \`id -nG' either failed or found just one.
EOF
(exit 77); exit
;;
esac
set _ $groups; shift
g1=$1
g2=$2
+2 -11
View File
@@ -6,6 +6,8 @@ if test "$VERBOSE" = yes; then
chgrp --version
fi
. $srcdir/../group-names
pwd=`pwd`
tmp=slink.$$
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
@@ -20,17 +22,6 @@ if test $framework_failure = 1; then
(exit 1); exit
fi
groups=`id -nG 2>/dev/null`
case "$groups" in
*' '*) ;;
*) cat <<EOF 1>&2
$0: this test requires that you be a member of more than one group,
but running \`id -nG' either failed or found just one.
EOF
(exit 77); exit
;;
esac
set _ $groups; shift
g1=$1
g2=$2