Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jan 2002 17:08:34 +1100
From:      Edwin Groothuis <edwin@mavetju.org>
To:        Bernie <Bernie_X@myrealbox.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: shells confusion
Message-ID:  <20020126170834.N823@k7.mavetju.org>
In-Reply-To: <20020126020430.P175-100000@BLAST>; from Bernie_X@myrealbox.com on Sat, Jan 26, 2002 at 02:18:16AM %2B0200
References:  <20020126020430.P175-100000@BLAST>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020126170834.N823>