From owner-freebsd-questions Fri Jan 25 22: 9:43 2002 Delivered-To: freebsd-questions@freebsd.org Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by hub.freebsd.org (Postfix) with ESMTP id 06DB537B402 for ; Fri, 25 Jan 2002 22:09:37 -0800 (PST) Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id D78D82B82F; Sat, 26 Jan 2002 07:09:12 +0100 (CET) Received: by k7.mavetju.org (Postfix, from userid 1001) id E9AF5151; Sat, 26 Jan 2002 17:08:34 +1100 (EST) Date: Sat, 26 Jan 2002 17:08:34 +1100 From: Edwin Groothuis To: Bernie Cc: freebsd-questions@FreeBSD.ORG Subject: Re: shells confusion Message-ID: <20020126170834.N823@k7.mavetju.org> Mail-Followup-To: Edwin Groothuis , Bernie , freebsd-questions@FreeBSD.ORG References: <20020126020430.P175-100000@BLAST> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020126020430.P175-100000@BLAST>; from Bernie_X@myrealbox.com on Sat, Jan 26, 2002 at 02:18:16AM +0200 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 Sat, Jan 26, 2002 at 02:18:16AM +0200, Bernie wrote: > i'm planning to learn shell programming but i'm not sure > on which one to choose... Try the Bourne shell /bin/sh for a special reason: it's available on all unix-systems so your scripts will run under all unix-variants. > also, looking into the scripts in /etc, i see a line on the > top saying 'bin/sh'. so are they all written in 'sh' and > not csh ? if so, why freebsd comes with csh as default? csh is the Berkeley UNIX C shell, that's why :-) > also, why single user mode proposes /bin/sh as default? > is there any particular reason for it? Well, it asks you which shell you want and it proposes /bin/sh. If you have to boot your machine in single user then only the root filesystem is mounted. So the shell (and all its libraries if it's not staticly linked) must be in that file-system. Furthermore, as before, it's the default unix-shell, it's available everywhere. Edwin -- Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: ------------------+ http://www.FatalDimensions.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message