From 58f134b649641a442a21f60a1c5889f4581240a5 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 17 May 2004 12:10:43 +0000 Subject: Use -h where necessary to retain semantics. --- tests/chgrp/basic | 4 ++-- tests/chgrp/deref | 6 +++--- tests/chgrp/posix-H | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/chgrp') diff --git a/tests/chgrp/basic b/tests/chgrp/basic index ee2f2b535..aaa0f9478 100755 --- a/tests/chgrp/basic +++ b/tests/chgrp/basic @@ -56,10 +56,10 @@ test "$VERBOSE" = yes && set +x touch f ln -s f symlink chgrp $g1 f - chgrp $g2 symlink 2> /dev/null + chgrp -h $g2 symlink 2> /dev/null # This should not change the group of f. - chgrp -c $g2 symlink 2> /dev/null + chgrp -h -c $g2 symlink 2> /dev/null chgrp -c $g2 f # This *should* change the group of f. diff --git a/tests/chgrp/deref b/tests/chgrp/deref index afe7b465a..2b947ae14 100755 --- a/tests/chgrp/deref +++ b/tests/chgrp/deref @@ -29,7 +29,7 @@ g2=$2 touch f ln -s f symlink -chgrp $g2 symlink 2> /dev/null +chgrp -h $g2 symlink 2> /dev/null set _ `ls -l symlink` g=$5 test "$g" = $g2 || { @@ -45,12 +45,12 @@ fail=0 chgrp $g1 f set _ `ls -l f`; g=$5; test "$g" = $g1 || fail=1 -chgrp $g2 symlink || fail=1 +chgrp -h $g2 symlink || fail=1 set _ `ls -l f`; g=$5; test "$g" = $g1 || fail=1 set _ `ls -l symlink`; g=$5; test "$g" = $g2 || fail=1 # This should not change the group of f. -chgrp $g2 symlink || fail=1 +chgrp -h $g2 symlink || fail=1 set _ `ls -l f`; g=$5; test "$g" = $g1 || fail=1 set _ `ls -l symlink`; g=$5; test "$g" = $g2 || fail=1 diff --git a/tests/chgrp/posix-H b/tests/chgrp/posix-H index 1652e595b..59f6533f0 100755 --- a/tests/chgrp/posix-H +++ b/tests/chgrp/posix-H @@ -33,7 +33,7 @@ fi fail=0 -chgrp -HR $g2 1s 2 || fail=1 +chgrp -h -HR $g2 1s 2 || fail=1 # These must have group $g2. # ========================= -- cgit v1.2.3-54-g00ecf