From owner-freebsd-current Wed Mar 14 4:59:21 2001 Delivered-To: freebsd-current@freebsd.org Received: from nagual.pp.ru (pobrecita.freebsd.ru [194.87.13.42]) by hub.freebsd.org (Postfix) with ESMTP id 84B9A37B718 for ; Wed, 14 Mar 2001 04:59:17 -0800 (PST) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.11.3/8.11.3) id f2ECx9Q72513; Wed, 14 Mar 2001 15:59:09 +0300 (MSK) (envelope-from ache) Date: Wed, 14 Mar 2001 15:59:08 +0300 From: "Andrey A. Chernov" To: David Malone Cc: Christos Zoulas , tcsh-bugs@mx.gw.com, current@FreeBSD.ORG Subject: Re: tcsh 6.10.00 echo;echo;echo; bug with fix Message-ID: <20010314155908.A72442@nagual.pp.ru> References: <20010313131944.A961@nagual.pp.ru> <20010313125249.704743330@hrothgar.gw.com> <20010314124109.A30970@salmon.maths.tcd.ie> <20010314154636.A72329@nagual.pp.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010314154636.A72329@nagual.pp.ru>; from ache@nagual.pp.ru on Wed, Mar 14, 2001 at 03:46:39PM +0300 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Mar 14, 2001 at 15:46:39 +0300, Andrey A. Chernov wrote: > 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. Thinking about compatibility: Since internal 'echo' does nothing, it _not_ used in any old csh scripts, while 'echo ""' does the same thing in both old and new variants, so old scripts will works in the same way. Since old csh is not maintained anymore, we don't need to preserve exact void compatibility with unsupported and not maintained other platforms software with no practical reason. -- 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