summaryrefslogtreecommitdiff
path: root/tests/chgrp
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-12-10 08:07:38 +0000
committerJim Meyering <jim@meyering.net>2000-12-10 08:07:38 +0000
commit9bb0e5cdb7727a59c2ac1c4dd99a6966b03725e9 (patch)
tree42a884d650682f77a460a0b1580ce6aa6391fda1 /tests/chgrp
parentcf302e3bc9af0b3e639b52a96e077c3199f2cf4e (diff)
downloadcoreutils-9bb0e5cdb7727a59c2ac1c4dd99a6966b03725e9.tar.xz
*** empty log message ***
Diffstat (limited to 'tests/chgrp')
-rwxr-xr-xtests/chgrp/basic10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/chgrp/basic b/tests/chgrp/basic
index 96e201eaa..45f918fc6 100755
--- a/tests/chgrp/basic
+++ b/tests/chgrp/basic
@@ -54,6 +54,15 @@ chgrp $g2 f2 || fail=1
chgrp -R -c $g2 d
chgrp -R -c $g1 d
chgrp -c $g2 d
+
+ rm -f f
+ touch f
+ ln -s f symlink
+ chgrp -c $g1 f
+ # This should not change the group of f.
+ chgrp -c $g2 symlink 2> /dev/null
+ chgrp -c $g2 f
+
) 2>&1 | sed "s/ $g1$/ G1/;s/ $g2$/ G2/" > actual
cat <<\EOF > expected
@@ -71,6 +80,7 @@ group of `d/f3' changed to G2
group of `d' changed to G1
group of `d/f3' changed to G1
group of `d' changed to G2
+group of `f' changed to G2
EOF
cmp expected actual \