gccbug asks '-n a)bort, e)dit or s)end?' when /bin/echo is the first echo in $PATH. Release: 3.2.2 Environment: System: SunOS bombur.uio.no 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-5_10 Architecture: sun4 host: sparc-sun-solaris2.8 build: sparc-sun-solaris2.8 target: sparc-sun-solaris2.8 configured with: ../gcc-3.2.2/configure --enable-languages=c,c++,f77 --prefix=/usit/bombur/hbf --enable-version-specific-runtime-libs --enable-threads How-To-Repeat: PATH="/bin:$PATH" gccbug
Fix: Don't hard-code ECHON=bsd in gccbug, instead check for bsd vs. sysv echo at run-time: --- gccbug~ Sun Mar 30 01:15:28 2003 +++ gccbug Sun Mar 30 13:55:33 2003 @@ -56,16 +56,13 @@ PASSWD="cat /etc/passwd" -ECHON=bsd - -if [ $ECHON = bsd ] ; then - ECHON1="echo -n" - ECHON2= -elif [ $ECHON = sysv ] ; then - ECHON1=echo - ECHON2='\c' -else - ECHON1=echo - ECHON2= -fi +ECHON1="echo -n" +ECHON2='\c' +case `$ECHON1 "foo $ECHON2"` in + -n*c) ECHON1=echo + ECHON2= + ;; + -n*) ECHON1=echo ;; + *) ECHON2= ;; +esac #
Hello, I can confirm that this problem is still present in gccbug on gcc 3.3 branch and mainline. Could you send the patch you included to the gcc-patches list? Thanks, Dara
Make sure you sent your patch to gcc-patches@gcc.gnu.org.
Subject: Re: gccbug's echo displays '-n' instead of no-line-break pinskia@physics.uc.edu writes: > Make sure you sent your patch to gcc-patches@gcc.gnu.org. Sent.
patch here: <http://gcc.gnu.org/ml/gcc-patches/2003-05/msg02245.html>.
Hmm, this file really comes from GNU GNATS, maybe we should update it from there and you should submit the patch to there if it is not already changed.
Just to tell you the GNATs 4.0 regression does not have this patch in it.
Subject: Re: gccbug's echo displays '-n' instead of no-line-break On Mon, 2004-10-18 at 04:03 +0000, pinskia at gcc dot gnu dot org wrote: > ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-18 04:03 ------- > Hmm, this file really comes from GNU GNATS, maybe we should update it from there and you should > submit the patch to there if it is not already changed. > Or maybe we should kill gccbug finally? :) Please? --
gccbug was removed from GCC.