Since one of my last 'emerge -u world' updates I always get the following output when I open a shell: basename: invalid option -- b Try `basename --help' for more information. -bash: [: too many arguments sonnenkind@nu ~ $ I tracked the problem down to /etc/profile.d/lilypond-profile.sh. There seems to be a problem with the basename-command in line 25 (see attachment). See also http://forums.gentoo.org/viewtopic-t-455803.html Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.3.6, glibc-2.3.5-r3, 2.6.15-gentoo-r1 i686) ================================================================= System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) XP 3000+ Gentoo Base System version 1.6.14 ccache version 2.3 [enabled] dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /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/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror" LC_ALL="en_US.UTF-8" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.de.gentoo.org/gentoo-portage" USE="x86 X aac acpi alsa apache2 audiofile avi bash-completion bitmap-fonts bluetooth browserplugin bzip2 cairo cdr cli crypt cups curl dga dhcp divx4linux dri dvd dvdr dvdread encode ethereal exif expat fam fbcon foomaticdb ftp gd gdbm gif gimp gimpprint glut gmp gphoto2 gpm gtk gtk2 gtkhtml guile idn imagemagick imap imlib isdnlog javascript jpeg lcms libwww mad maildir mhash mikmod mmx mng motif mozilla mp3 mpeg mysql mysqli ncurses nls nocd nptl nsplugin nvidia ogg opengl pcre pdf pdflib perl php png ppds pppd python quicktime readline reflection scanner sdl session spell spl sqlite ssl svg tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode usb utf8 vcd vorbis win32codecs wma wmf xine xml xml2 xmms xorg xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, INSTALL_MASK, LANG, LDFLAGS, LINGUAS
Created attachment 85187 [details] my lilypond-profile.sh
I have the same sort of problem too, since I had made "emerge --ask --update --deep world" (no problem before that). It seems that the new version of basename does not handle strings beginning with '-' (dash) correctly. Here it is with Gentoo: pg@arrakeen> cat /proc/version Linux version 2.6.16-gentoo-r7 (root@livecd) (gcc version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)) #3 SMP PREEMPT Tue May 16 13:37:23 CEST 2006 pg@arrakeen> basename -ksh basename: invalid option -- k Try `basename --help' for more information. pg@arrakeen> basename.orig --version basename (GNU coreutils) 5.94 Copyright (C) 2006 Free Software Foundation, Inc. This is free software. You may redistribute copies of it under the terms of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent permitted by law. Written by FIXME unknown. pg@arrakeen> And an example with my Mandrakelinux : pascal> cat /proc/version Linux version 2.6.11-13mdk (qateam@mercury.mandriva.com) (gcc version 3.4.3 (Mandrakelinux 10.2 3.4.3-7mdk)) #1 Mon Nov 28 18:27:05 MST 2005 pascal> basename -ksh -ksh pascal> basename --version basename (GNU coreutils) 5.2.1
I have the same sort of problem too, since I had made "emerge --ask --update --deep world" (no problem before that). It seems that the new version of basename does not handle strings beginning with '-' (dash) correctly. Here it is with Gentoo: pg@arrakeen> cat /proc/version Linux version 2.6.16-gentoo-r7 (root@livecd) (gcc version 3.4.4 (Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)) #3 SMP PREEMPT Tue May 16 13:37:23 CEST 2006 pg@arrakeen> basename -ksh basename: invalid option -- k Try `basename --help' for more information. pg@arrakeen> basename.orig --version basename (GNU coreutils) 5.94 Copyright (C) 2006 Free Software Foundation, Inc. This is free software. You may redistribute copies of it under the terms of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent permitted by law. Written by FIXME unknown. pg@arrakeen> And an example with my Mandrakelinux : pascal> cat /proc/version Linux version 2.6.11-13mdk (qateam@mercury.mandriva.com) (gcc version 3.4.3 (Mandrakelinux 10.2 3.4.3-7mdk)) #1 Mon Nov 28 18:27:05 MST 2005 pascal> basename -ksh -ksh pascal> basename --version basename (GNU coreutils) 5.2.1 Écrit par FIXME unknown. Copyright (C) 2004 Free Software Foundation, Inc. Ce logiciel est libre; voir les sources pour les conditions de reproduction. AUCUNE garantie n'est donnée; tant pour des raisons COMMERCIALES que pour RÉPONDRE À UN BESOIN PARTICULIER. pascal> NB.: in the script wee can find : basename "$0" And $0 begins with '-' when the shell is a login shell.
no version info, no patch, too old