macula root # /etc/init.d/tomcat5 start * Starting Tomcat... /opt/tomcat5/bin/catalina.sh: line 106: `_bash-completion-config': not a valid identifier [ ok ] Even if it exits zero, the operation didn't end successfully. If I unmerge bash-completion-config I can start tomcat immediatly. I can experiment similar behavour emerging bash-completion-config with tomcat already started, it continues to run, but then I can turn tomcat off no more, the error message is the same as above. Reproducible: Always Steps to Reproduce: 1. 2. 3. [10:03] [sko@macula:~]$ emerge info Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.10-rc2 i686) ================================================================= System uname: 2.6.10-rc2 i686 AMD Athlon(TM) XP 1800+ Gentoo Base System version 1.4.16 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -mmmx -Os -m3dnow -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon -mmmx -Os -m3dnow -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks fixpackages sandbox sfperms" GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo http://gentoo.tiscali.nl/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo ftp://ftp6.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo http://gentoo.math.bme.hu http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.ynet.sk/pub http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dnow X X509 aalib alsa apm arts avi berkdb bitmap-fonts cddb cdparanoia cdr crypt cups dga directfb doc dv dvd dvdr encode esd f77 fam fbcon flac fmod foomaticdb fortran ftp gcj gdbm ggi gif gnome gpm gstreamer gtk gtk2 guile imagemagick imlib java jpeg junit kde libg++ libwww live mad mikmod mmx mng motif mozcalendar mozilla moznoirc mpeg ncurses nls nptl nptlonly oggvorbis opengl oracle oss pam pdflib perl png python qt quicktime readline samba scanner sdl slang spell ssl svga tcltk tcpd tetex tiff truetype x86 xml xml2 xmms xv zlib"
Ok, it took me a little bit to figure out what was going on, but here's the deal. _bash-completion-config is a valid bash identifier, but not for POSIX sh. When bash is started in POSIX-mode, it'll puke if a function named like that exists in the environment. Fixed in 0.7, which was just committed to CVS. Thank you very much for the report. Please test and re-open this bug if necessary.
Tasted, now everything's ok, great job! Thanks.