From b10a836fa0f27b5f2ef1491c3226681a97ea4072 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 17 Jan 2005 22:40:57 +0000 Subject: Use numeric group ids, not symbolic group names, to avoid shell quoting issues. --- tests/chgrp/recurse | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/chgrp/recurse') diff --git a/tests/chgrp/recurse b/tests/chgrp/recurse index 05aaa08d4..7cd1648e2 100755 --- a/tests/chgrp/recurse +++ b/tests/chgrp/recurse @@ -35,22 +35,22 @@ ln -s ../e d/s chgrp -R $g1 e/ee || fail=1 # This should not should change the group of e/ee chgrp -R $g2 d -set _ `ls -l e/ee`; g=$5; test "$g" = $g1 || fail=1 +set _ `ls -ln e/ee`; g=$5; test "$g" = $g1 || fail=1 # This must change the group of e/ee, since -L makes # chgrp traverse the symlink from d/s into e. chgrp -L -R $g2 d -set _ `ls -l e/ee`; g=$5; test "$g" = $g2 || fail=1 +set _ `ls -ln e/ee`; g=$5; test "$g" = $g2 || fail=1 # This must *not* change the group of e/ee chgrp -H -R $g1 d -set _ `ls -l e/ee`; g=$5; test "$g" = $g2 || fail=1 +set _ `ls -ln e/ee`; g=$5; test "$g" = $g2 || fail=1 ln -s d link # This shouldn't change the group of e/ee either. chgrp -H -R $g1 link || fail=1 -set _ `ls -l e/ee`; g=$5; test "$g" = $g2 || fail=1 +set _ `ls -ln e/ee`; g=$5; test "$g" = $g2 || fail=1 # But it *should* change d/dd. -set _ `ls -l d/dd`; g=$5; test "$g" = $g1 || fail=1 +set _ `ls -ln d/dd`; g=$5; test "$g" = $g1 || fail=1 (exit $fail); exit $fail -- cgit v1.2.3-54-g00ecf