From owner-freebsd-questions Sat Jan 26 17:17:30 2002 Delivered-To: freebsd-questions@freebsd.org Received: from pc1-dale5-0-cust136.not.cable.ntl.com (pc1-dale5-0-cust136.not.cable.ntl.com [80.1.76.136]) by hub.freebsd.org (Postfix) with SMTP id B3BA437B402 for ; Sat, 26 Jan 2002 17:17:17 -0800 (PST) Received: (qmail 49653 invoked from network); 27 Jan 2002 01:17:08 -0000 Received: from localhost (HELO matt.thebigchoice.com) (127.0.0.1) by localhost with SMTP; 27 Jan 2002 01:17:08 -0000 Date: Sun, 27 Jan 2002 01:17:08 +0000 From: Matt H To: freebsd-questions@FreeBSD.ORG Subject: Re: shells confusion Message-Id: <20020127011708.5d76e328.matt@proweb.co.uk> In-Reply-To: <4sg04s645p.04s@localhost.localdomain> References: <947431@toto.iv> <5.1.0.14.0.20020126153501.04980750@mail.enterit.com> <4sg04s645p.04s@localhost.localdomain> X-Mailer: Sylpheed version 0.7.0 (GTK+ 1.2.10; i386--freebsd4.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 26 Jan 2002 16:14:42 -0800 "swear@blarg.net" wrote: > Jim Conner writes: > > > sh is the right way to go. In my last email I suggested ksh and I hold > > true to that. Fortunately, if you know how to sh script, you know how > > to basicly ksh script. I still suggest scripting in ksh, however. :) another factor to consider is how much software is dynamically loaded with the shell shells compiled against readline pay a penalty in startup times I'll quote from the plan9 mailing list where the dubious merits of the GNU readline library have recently been discussed : > * If [you use] dynamic linked libraries, you have taken the first step > on the slippery slope to the land of gratuitious complexity, > where even a simple "hello, world" C program can execute > 100000 [userland] instructions before it actually prints anything. > (No, I'm not kidding.) For some reason, people seem to think > adding features in dynamic libraries is "free". for quick startup, forking one should try a lean shell the file sizes of the executables don;t gove much away but : -r-xr-xr-x 1 root wheel 799464 Nov 17 20:30 /usr/local/bin/bash -r-xr-xr-x 2 root wheel 636076 Sep 18 18:25 /bin/tcsh -r-xr-xr-x 1 root wheel 448532 Sep 18 18:25 /bin/sh -r-xr-xr-x 1 root wheel 81608 Dec 5 13:40 /usr/local/bin/rc that last one is an implementation of plan9's rc shell in unix rc is worth a look (/usr/ports/shells/rc) , as it will be OS agnostic for it's supported platforms To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message