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: [EMAIL PROTECTED]
Open Systems Group, ITSD, ISTA
Province of BC
In message <[EMAIL PROTECTED]>, 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" <[EMAIL PROTECTED]> -----
>
> From: "Andrey A. Chernov" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> 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 [EMAIL PROTECTED]
> with "unsubscribe freebsd-stable" in the body of the message
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message
Re: FWD: tcsh 6.10.00 echo;echo;echo; bug with fix
Cy Schubert - ITSD Open Systems Group Thu, 15 Mar 2001 11:17:22 -0800
- Re: tcsh 6.10.00 ec... David Malone
- Re: tcsh 6.10.... Andrey A. Chernov
- Re: tcsh 6... David Malone
- Re: tcsh 6... Christos Zoulas
- Re: tcsh 6... Andrey A. Chernov
- Re: tcsh 6... Christos Zoulas
- Re: tcsh 6... Daniel Rock
- Re: tcsh 6... Andrey A. Chernov
- Re: tcsh 6.10.00 echo;e... Kimmo Suominen
- Re: Maintainer? (was Re: tcsh 6.10.0... Warner Losh
- Cy Schubert - ITSD Open Systems Group
