diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-01-17 22:40:57 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-01-17 22:40:57 +0000 |
commit | b10a836fa0f27b5f2ef1491c3226681a97ea4072 (patch) | |
tree | 9d6caa09b59c653ec9510bc1c654af131217ada2 /tests/chgrp/recurse | |
parent | c9946379010854e27a43f63506622dc89a1fb613 (diff) | |
download | coreutils-b10a836fa0f27b5f2ef1491c3226681a97ea4072.tar.xz |
Use numeric group ids, not symbolic group names, to avoid shell quoting issues.
Diffstat (limited to 'tests/chgrp/recurse')
-rwxr-xr-x | tests/chgrp/recurse | 10 |
1 files changed, 5 insertions, 5 deletions
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 |