From owner-freebsd-current Wed Mar 14 7:30:15 2001 Delivered-To: freebsd-current@freebsd.org Received: from hrothgar.gw.com (hrothgar.gw.com [204.80.150.3]) by hub.freebsd.org (Postfix) with ESMTP id C2FCE37B718 for ; Wed, 14 Mar 2001 07:30:01 -0800 (PST) (envelope-from kim@tac.nyc.ny.us) Received: from hrothgar.gw.com (localhost [127.0.0.1]) by hrothgar.gw.com (Postfix) with ESMTP id AFA7132FC; Wed, 14 Mar 2001 10:29:57 -0500 (EST) To: "Andrey A. Chernov" Cc: David Malone , Christos Zoulas , tcsh-bugs@mx.gw.com, current@freebsd.org Subject: Re: tcsh 6.10.00 echo;echo;echo; bug with fix In-Reply-To: <20010314154636.A72329@nagual.pp.ru> from "Andrey A. Chernov" on Wed, 14 Mar 2001 15:46:39 +0300 References: <20010313131944.A961@nagual.pp.ru> <20010313125249.704743330@hrothgar.gw.com> <20010314124109.A30970@salmon.maths.tcd.ie> <20010314154636.A72329@nagual.pp.ru> X-Face: dJ`"\|-Z6bKup3nm*Th75RV`!T)~xXMZKQt6|%BR~9'A7WzN"rsq4Cv+T~Hg9YRb^oEmVxz I0s1&A|(:ISoQJus6s<%pssRki3x*Kf;3BL;Gyq3'>06R>R`Om_ILkJAizKL{AC::|UE/N)u}*Ix}s nn{eh=0Um[!yF@gn-JN.6AB+xy5$Biy5I?)T~i#-C^m>vy(!(S*'m}M[>5uvbWcm X-Attribution: Kim MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29006.984583797.1@hrothgar.gw.com> Date: Wed, 14 Mar 2001 10:29:57 -0500 From: Kimmo Suominen Message-Id: <20010314152957.AFA7132FC@hrothgar.gw.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I agree with Andrey -- although this has the possibility of breaking old scripts that expect no output from echoing an empty variable. Since the DEC/OSF system update script only works with their ancient /bin/sh (and not with the XPG4 sh) I wouldn't be surprised to find such scripts out there... :-) + Kim | From: "Andrey A. Chernov" | Date: Wed, 14 Mar 2001 15:46:39 +0300 | | On Wed, Mar 14, 2001 at 12:41:09 +0000, David Malone wrote: | > On Tue, Mar 13, 2001 at 07:52:49AM -0500, Christos Zoulas wrote: | > | > > Thanks so much! I wonder how come this bug remained unnoticed for such | > > a long time! | > | > AFAIK, this isn't a bug. It's what csh has always done. (It's what | > IBM and Sun's csh do anyway...) To echo a newline in csh you do | > 'echo ""'. | | If this bug is rotten in csh as designed, it not means that it isn't | the bug. | | Lets look from other side: "echo" is internal csh command which replace | /bin/echo for speed reasons. /bin/echo;/bin/echo;/bin/echo produce 3 \n, | so internal command must do the same in any case. | | -- | Andrey A. Chernov | http://ache.pp.ru/ | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message