/opt/gentoo-rsync/rsync-gentoo-portage.sh in the package app-admin/gentoo-rsync-mirror is broken. It contains a dos-style carriage return at the end of the first line: "#!/bin/bash^M" Running it through dos2unix solves the problem. See: http://forums.gentoo.org/viewtopic-t-411497-highlight-.html
In cvs. Thanks for your attention.