From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 12 18:47:21 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E6FE16A4CE for ; Fri, 12 Nov 2004 18:47:21 +0000 (GMT) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19CDF43D2D for ; Fri, 12 Nov 2004 18:47:21 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.13.1/8.13.1) with ESMTP id iACIlEQW002060; Fri, 12 Nov 2004 10:47:14 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.13.1/8.13.1/Submit) id iACIlAsj002059; Fri, 12 Nov 2004 10:47:10 -0800 (PST) (envelope-from obrien) Date: Fri, 12 Nov 2004 10:47:10 -0800 From: "David O'Brien" To: Avleen Vig Message-ID: <20041112184710.GA1594@dragon.nuxi.com> References: <41940880.7070409@corserv.com> <20041112023023.GG19417@silverwraith.com> <20041112031122.GA87071@falcon.midgard.homeip.net> <20041112055543.GH19417@silverwraith.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041112055543.GH19417@silverwraith.com> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 6.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 cc: freebsd-hackers@freebsd.org cc: Kevin Lyons Subject: Re: tcsh fix X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-hackers@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2004 18:47:21 -0000 On Thu, Nov 11, 2004 at 09:55:43PM -0800, Avleen Vig wrote: > On Fri, Nov 12, 2004 at 04:11:22AM +0100, Erik Trulsson wrote: > > Personally I am of the opinion that csh (all versions) should be > > removed completely from the base system and relegated entirely to the > > ports system. Other than historical reasons there is not much point in > > having it in the base system. > > I strongly disagree. csh and sh should be 'pure' versions. That is to > say, no matter what shell is actually being called as sh or csh, it > should provide a 100% compatible version, no differences, no "upgrades". > This is to provide compatibility whn working with multiple versions of > Unix. What is a pure 'csh'?? Please answer in detail. Have you ever looked at the source code for 4.3BSD 'csh'? What about 'tcsh' source code? Hint, Christos Zoulas had at CSRG login and was maintaining and enhancing BSD 'csh'. The 4.4BSD 'csh' was Zoulas's work. 'tcsh' is simply the continued evolution of BSD 'csh'. So do you want the original Bill Joy 'csh' from 3BSD?? Do you want the 'csh' that originally appeared in System 3 (or was it V)?? Do you wan the 4.4BSD-Lite2 'csh' (ie, the last from CSRG)?? THERE IS NO STANDARD 'csh'. POSIX doesn't even try to standardize it. 'csh' is an interactive shell, not a programming language. Anyone trying to write "portable" scripts in 'csh' should know why "Csh Programming Considered Harmful" http://www.faqs.org/faqs/unix-faq/shell/csh-whynot/ > I write many scripts in sh on Solaris, and find they just don't work on > Linux because /bin/sh on Linux is really /bin/bash and is not bacwards > compatible. I HATE this. This is a totally different story. There is a POSIX 'sh' standard, and bash "leaks" extensions even when exec'ed as /bin/sh. > > There is no such thing as "pure sh". It you believe otherwise please > > tell us what you think such a shell would look like and exactly what > > features should be in it. > > (Hint: Current standards require /bin/sh to have several features that > > were not available on early Unix versions.) > > Then we should follow current standards. Not pretend one shell is > another! Again, show me the standard addressing 'csh'. -- -- David (obrien@FreeBSD.org)