enewuser() contains: # handle groups local egroups=$1; shift local g egroups_arr IFS="," read -r -a egroups_arr <<<"${egroups}" ➜ shift if [[ ${#egroups_arr[@]} -gt 0 ]] ; then ... fi einfo " - Groups: ${egroups:-(none)}" # handle extra args if [[ $# -gt 0 ]] ; then die "extra arguments no longer supported; please file a bug" else If only 1 (insteaf of e.g. 2) unsupported extra argument is passed, then above call to die() is not triggered due to unnecessary call to 'shift' indicated above.
commit 02698677b5ebb43cdb82e580e47eb4d98725caae Author: Lars Wendler <polynomial-c@gentoo.org> Date: Mon Aug 29 10:49:22 2016 user.eclass: Removed superfluous "shift" call (bug #592176).