summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2007-09-28 23:09:30 +0000
committerJim Meyering <jim@meyering.net>2007-09-29 07:53:49 +0200
commit329982b723c4000b8371c54d51f5e2eaae71dc7a (patch)
tree26293b4105b61cf890f1a7b10c4fa82bef030845
parent5b0e90427261d1614da012dbd164ad446f403b46 (diff)
downloadcoreutils-329982b723c4000b8371c54d51f5e2eaae71dc7a.tar.xz
* src/groups.sh: Don't ignore first argument if later argument is --.
Signed-off-by: Eric Blake <ebb9@byu.net>
-rw-r--r--ChangeLog4
-rwxr-xr-xsrc/groups.sh2
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b63e919ac..0d98141ea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-09-28 Eric Blake <ebb9@byu.net>
+
+ * src/groups.sh: Don't ignore first argument if later argument is --.
+
2007-09-27 Jim Meyering <jim@meyering.net>
Avoid spurious test failure when SELinux stats "selinux/class".
diff --git a/src/groups.sh b/src/groups.sh
index 54ae918c7..7afe52e71 100755
--- a/src/groups.sh
+++ b/src/groups.sh
@@ -52,6 +52,8 @@ do
-*)
echo "$0: invalid option: $arg" >&2
exit 1 ;;
+ *)
+ break ;;
esac
done