From owner-freebsd-questions Fri Sep 20 06:49:45 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA11341 for questions-outgoing; Fri, 20 Sep 1996 06:49:45 -0700 (PDT) Received: from obie.softweyr.com (slc39.modem.xmission.com [204.228.136.39]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id GAA11303 for ; Fri, 20 Sep 1996 06:49:41 -0700 (PDT) Received: (from wes@localhost) by obie.softweyr.com (8.7.5/8.6.12) id HAA03020; Fri, 20 Sep 1996 07:50:29 -0600 (MDT) Date: Fri, 20 Sep 1996 07:50:29 -0600 (MDT) Message-Id: <199609201350.HAA03020@obie.softweyr.com> From: Wes Peters To: Randy DuCharme CC: questions@freebsd.org Subject: Shells shells shells? In-Reply-To: <73281000@toto.iv> Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Randy DuCharme writes: > [...] I'm wondering...what's the "BEST" shell to use for a person > new to UNIX. (by new I'm implying that I'm unaccustomed to any > particular shell and will be learning whatever shell from the > ground up). Bash. It has all of the features of the Bourne shell (sh) (except, perhaps, speed), and most of the features of the Korn shell (ksh) and C shell (csh), and many features none of those have. It has command line editing like tcsh, or vi-style line editing for those who want it, interactive command recall, a history mechanism that makes sense when you run multiple sessions, and a raft of other features. The one disadvantage is size: text data bss dec hex 225280 12288 45048 282616 44ff8 /bin/csh 270336 16384 44052 330772 50c14 /bin/sh 335872 20480 7236 363588 58c44 /usr/local/bin/bash Fortunately this doesn't hurt quite so much on FreeBSD, you really only have one copy of that 330K text segment in memory, regardless of how many bash sessions you have running. For writing shell scripts, I usually stick to /bin/sh, as it is the *most* portable shell across UNIX systems -- they all have at least that one. ;^) -- Wes Peters | Softweyr | Where am I, and what am I doing in this handbasket? Consulting | softweyr@xmission.com