This problem happens in rc-scripts-1.4.16 # /etc/init.d/[whatever] stop /sbin/runscript.sh: line 107: [: : integer expression expected /sbin/runscript.sh: line 141: 0 + : syntax error: operand expected (error token is " ") # Now the [whatever] program is stopped. # /etc/init.d/[whatever] stop * ERROR: "distccd" has not yet been started. # # /etc/init.d/[whatever] start /sbin/runscript.sh: line 107: [: : integer expression expected /sbin/runscript.sh: line 141: 0 + : syntax error: operand expected (error token is " ") /sbin/runscript.sh: line 107: [: : integer expression expected /sbin/runscript.sh: line 141: 0 + : syntax error: operand expected (error token is " ") /sbin/runscript.sh: line 107: [: : integer expression expected /sbin/runscript.sh: line 141: 0 + : syntax error: operand expected (error token is " ") # Now it is started! Using bash -x in runscript.sh I get: ++ '[' 0 -gt 0 -a distccd = '' ']' ++ '[' 1 -le '' ']' /sbin/runscript.sh: line 107: [: : integer expression expected ++ echo 0 ++ return 1 + rc_index=0 /sbin/runscript.sh: line 141: 0 + : syntax error: operand expected (error token is " ") so the first two lines are the problem...? Reproducible: Always Steps to Reproduce: Portage 2.0.50-r9 (default-x86-1.4, gcc-3.3.3, glibc-2.3.2-r9, 2.6.7) ================================================================= System uname: 2.6.7 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz distcc 2.13 i486-slackware-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=i686 -pipe" CHOST="i486-slackware-linux" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distcc sandbox" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://planetmirror.com/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j8" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib alsa apm arts avi berkdb cdr crypt cups dvd dvdr encode esd foomaticdb gdbm gif gnome gphoto2 gpm gtk gtk2 guile imlib jpeg kde libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcltk tcpd tetex truetype usb wxwindows x86 xml2 xmms xv zlib"
the only time i've seen this is when i was using a screwed up version of bash ... could you try doing `emerge bash` and see if this fixes things ? if not, try `emerge baselayout` ... if you still get this error, try posting /sbin/runscript.sh as an attachment here and include the output of `env`
no feedback