1 2 3 4 5 6 7
# Ensure to work with a single argument. if [ $# -gt 1 ]; then first_arg="$1" shift err "Warning: extra arguments '$@' will be ignored." set -- $first_arg fi