Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Mar 2001 11:32:28 -0800
From:      Cy Schubert - ITSD Open Systems Group <Cy.Schubert@uumail.gov.bc.ca>
To:        Stijn Hoop <stijn@win.tue.nl>, ache@nagual.pp.ru
Cc:        freebsd-stable@FreeBSD.ORG, tcsh-bugs@mx.gw.com, current@FreeBSD.ORG
Subject:   Re: FWD: tcsh 6.10.00 echo;echo;echo; bug with fix 
Message-ID:  <200103151932.f2FJWUP56905@cwsys.cwsent.com>
In-Reply-To: Your message of "Wed, 14 Mar 2001 09:41:35 %2B0100." <20010314094135.B361@pcwin002.win.tue.nl> 

next in thread | previous in thread | raw e-mail | index | archive | help
All implementations of csh and tcsh do this.  I've tested this on 
Solaris csh, Tru64-UNIX csh, and DG/UX csh.  Their implementations of 
csh behave the same as tcsh does, so does 44bsd-csh in the FreeBSD 
ports collection.  This is not a bug, or if it is a bug it's been there 
since the beginning of csh.  If your patch is implemented, we will lose 
compatibility with other implementations of csh, notably vendor 
implementations, making csh scripts incompatible across platforms.

Under csh you need to:

echo ''; echo ''; echo '';

I think maintaining compatibility across platforms is more important 
than adjusting tcsh's quirky behaviour, which BTW matches the quirky 
behaviour of the original csh on other platforms, rather than to have 
csh conform to what the Bourne family of shells do.


Regards,                         Phone:  (250)387-8437
Cy Schubert                        Fax:  (250)387-5766
Team Leader, Sun/Alpha Team   Internet:  Cy.Schubert@osg.gov.bc.ca
Open Systems Group, ITSD, ISTA
Province of BC

In message <20010314094135.B361@pcwin002.win.tue.nl>, Stijn Hoop writes:
> Hi,
> 
> this bug also exists in 4.3-BETA as of today; is this fixable in time for
> 4.3 ?
> 
> --Stijn
> 
> ----- Forwarded message from "Andrey A. Chernov" <ache@nagual.pp.ru> -----
> 
> From: "Andrey A. Chernov" <ache@nagual.pp.ru>
> To: tcsh-bugs@mx.gw.com
> Cc: current@freebsd.org
> Subject: tcsh 6.10.00 echo;echo;echo; bug with fix
> 
> echo;echo;echo; must output 3 new lines but currently not due to obvious
> bug:
> 
> --- sh.func.c.bak	Fri Dec  1 01:18:27 2000
> +++ sh.func.c	Tue Mar 13 13:04:54 2001
> @@ -1147,7 +1147,7 @@
>  #endif /* BSDSIGS */
>      v++;
>      if (*v == 0)
> -	return;
> +	goto done;
>      gflag = 0, tglob(v);
>      if (gflag) {
>  	v = globall(v);
> 
> -- 
> Andrey A. Chernov
> http://ache.pp.ru/
> 
> ----- End forwarded message -----
> 
> -- 
> If today is the first day of the rest of your life, what the hell was
> yesterday?
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103151932.f2FJWUP56905>