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.
fail=0
-chgrp -h -HR $g2 1s 2 || fail=1
+chgrp -H -R $g2 1s 2 || fail=1
# These must have group $g2.
# =========================
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
# 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