]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Do not attempt to combine -h and -H; these
authorJim Meyering <jim@meyering.net>
Tue, 8 Jun 2004 15:25:59 +0000 (15:25 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 8 Jun 2004 15:25:59 +0000 (15:25 +0000)
options are incompatible, and their behavior is undefined with POSIX.
(changed, not_changed): Adjust to match the fact that -h is no longer
specified.  Sort names.

tests/chgrp/posix-H

index 59f6533f0a4b86953b1a0624ffdf1578c9376273..92a2cd0c03bcc3f27507f08377c11db42af8df41 100755 (executable)
@@ -33,7 +33,7 @@ fi
 
 fail=0
 
-chgrp -h -HR $g2 1s 2 || fail=1
+chgrp -H -R $g2 1s 2 || fail=1
 
 # These must have group $g2.
 # =========================
@@ -41,8 +41,8 @@ changed='
 1
 1/1F
 2
-2/2s
 2/2F
+3
 '
 for i in $changed; do
   # Filter out symlinks (entries that end in `s'), since it's not
@@ -56,9 +56,9 @@ done
 # These must have group $g1.
 # =========================
 not_changed='
-3
-3/3F
 1s
+2/2s
+3/3F
 '
 for i in $not_changed; do
   # Filter out symlinks (entries that end in `s'), since it's not