From owner-freebsd-questions Fri Jan 25 18:31:12 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp-send.myrealbox.com (smtp-send.myrealbox.com [192.108.102.143]) by hub.freebsd.org (Postfix) with ESMTP id 6E20637B400 for ; Fri, 25 Jan 2002 18:31:08 -0800 (PST) Received: from ppp1-222.ath.forthnet.gr Bernie_X@smtp-send.myrealbox.com [213.16.148.222] by smtp-send.myrealbox.com with Novell NIMS $Revision: 2.88 $ on Novell NetWare; Fri, 25 Jan 2002 19:31:05 -0700 Date: Sat, 26 Jan 2002 02:18:16 +0200 (EET) From: Bernie X-X-Sender: root@BLAST To: freebsd-questions@FreeBSD.ORG Subject: shells confusion Message-ID: <20020126020430.P175-100000@BLAST> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 hi, i'm planning to learn shell programming but i'm not sure on which one to choose... i've been reading in the 'FreeBSD unleashed' that people wanting to do shell programming should stay away from c-shell as it's realy good for interactive, but very bad for scripts. is this true? 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? also, why single user mode proposes /bin/sh as default? is there any particular reason for it? i'm a bit confused on which shell to pick from programming. also i've been thinking of perl, but for the moment i think i've got to learn at least how to do basic shell programming, not only to write programs, but also to understand scrips that come with the system. but the question is 'which shell' ... any advice on this matter will be appreciated. Regards --Bernie To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message