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/deref | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'tests/chgrp/deref') diff --git a/tests/chgrp/deref b/tests/chgrp/deref index 5e605bfa6..ff215125c 100755 --- a/tests/chgrp/deref +++ b/tests/chgrp/deref @@ -30,7 +30,7 @@ touch f ln -s f symlink chgrp -h $g2 symlink 2> /dev/null -set _ `ls -l symlink` +set _ `ls -ln symlink` g=$5 test "$g" = $g2 || { cat <&2 @@ -43,25 +43,25 @@ EOF fail=0 chgrp $g1 f -set _ `ls -l f`; g=$5; test "$g" = $g1 || fail=1 +set _ `ls -ln f`; g=$5; test "$g" = $g1 || 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 +set _ `ls -ln f`; g=$5; test "$g" = $g1 || fail=1 +set _ `ls -ln symlink`; g=$5; test "$g" = $g2 || fail=1 # This should not change the group of f. 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 +set _ `ls -ln f`; g=$5; test "$g" = $g1 || fail=1 +set _ `ls -ln symlink`; g=$5; test "$g" = $g2 || fail=1 chgrp $g2 f -set _ `ls -l f`; g=$5; test "$g" = $g2 || fail=1 +set _ `ls -ln f`; g=$5; test "$g" = $g2 || fail=1 # This *should* change the group of f. # Though note that the diagnostic you'd get with -c is misleading in that # it says the `group of `symlink'' has been changed. chgrp --dereference $g1 symlink -set _ `ls -l f`; g=$5; test "$g" = $g1 || fail=1 -set _ `ls -l symlink`; g=$5; test "$g" = $g2 || fail=1 +set _ `ls -ln f`; g=$5; test "$g" = $g1 || fail=1 +set _ `ls -ln symlink`; g=$5; test "$g" = $g2 || fail=1 (exit $fail); exit $fail -- cgit v1.2.3-70-g09d2