It is currently Tue, 30 Nov 2021 17:13:31 GMT



 
Author Message
 Bourne Shell vs C-Shell

 Richie> I've been told that Bourne shell is the only standardised unix
 Richie> shell and that C-shell is not standard.

Yup.

 Richie> I've used both and, no doubt, prefer C-shell - but I've been told
 Richie> not to use C-shell because of the fact that it may be non-standard.

Are you talking about "use" in the sense of using it as an interactive shell
for your own use, or "use" in the sense of writing scripts for it?

All the reasons (and there are *plenty*) for never writing scripts for the
C shell are in the regular "Csh programming considered harmful" article.

For interactive use, my inclination is always to let people make their own
choices; people always have their own preferences for working environment.

--
Andrew.

comp.unix.programmer FAQ: see <URL: http://www.**-**.com/ ;



 Sun, 10 Oct 1999 03:00:00 GMT   
 Bourne Shell vs C-Shell

I've been told that Bourne shell is the only standardised unix
shell and that C-shell is not standard.

I've used both and, no doubt, prefer C-shell - but I've been told
not to use C-shell because of the fact that it may be non-standard.

Any comments/comparisons?

--
Cheers,
Richie !

=====================================================================
From:   Richard Leclair            | You are only young once, but you
        Software Library Manager,  | can stay immature indefinitely.
        ADI Limited.  (Perth, WA)  |---------------------------------
Tel:    (08) 9333 8888  ext. 823   | "Be careful of reading health
Fax:    (08) 9333 8889             | books, you might die of a
E-mail: rich...@ccis.adisys.com.au | misprint."     -- Mark Twain
---------------------------------------------------------------------
    o  \ o / _ o        __|    \ /     |__        o _ \ o /  o
   /|\   |    /\   __\o   \o    |    o/    o/__   /\    |   /|\
   / \  / \  | \  /) |    ( \  /o\  / )    |  (\  / |  / \  / \
=====================================================================



 Sun, 10 Oct 1999 03:00:00 GMT   
 Bourne Shell vs C-Shell

A long time ago, csh was preferred, and encouraged, because the bourne
shell just isn't very friendly for interactive use.  But after ksh and
the posix sh, with interactive use being much friendlier, there's
little reason to advocate csh to new users (plus there's bash, zsh,
etc, that beat out standard shells as well).

Hmm, I'd say that for someone learning UNIX, don't make either csh or
sh your shell :-)

--
Darin Johnson
da...@usa.net.delete_me



 Sun, 10 Oct 1999 03:00:00 GMT   
 Bourne Shell vs C-Shell

On 23 Apr 1997 09:35:50 +0100, Andrew Gierth

I've written thousands of Csh programs with nary a problem. But as
most people use Bourne or Korn I'd recommend using Bourne.

Richard
Sybase/Oracle DBA
Dallas, TX.



 Tue, 12 Oct 1999 03:00:00 GMT   
 Bourne Shell vs C-Shell

On 23 Apr 1997 09:35:50 +0100, Andrew Gierth

I've written thousands of Csh programs with nary a problem. But as
most people use Bourne or Korn I'd recommend using Bourne.

Richard
Sybase/Oracle DBA
Dallas, TX.



 Tue, 12 Oct 1999 03:00:00 GMT   
 Bourne Shell vs C-Shell

 R> I've written thousands of Csh programs with nary a problem.

Then you have obviously never used SCO Unix, since their version of
csh is so old it still has && and || backwards.

--
Andrew.

comp.unix.programmer FAQ: see <URL: http://www.erlenstar.demon.co.uk/unix/>



 Wed, 13 Oct 1999 03:00:00 GMT   
 Bourne Shell vs C-Shell

 R> I've written thousands of Csh programs with nary a problem.

Then you have obviously never used SCO Unix, since their version of
csh is so old it still has && and || backwards.

--
Andrew.

comp.unix.programmer FAQ: see <URL: http://www.erlenstar.demon.co.uk/unix/>



 Wed, 13 Oct 1999 03:00:00 GMT   
 Bourne Shell vs C-Shell

I've worked on SCO 3.2.4.2  The main reason I write anything in Csh is
I'm more used to it. However I don't 'Code' in Shell. That defeats the
purpose.

Although I am guilty of using Perl a little too much :))

Richard Scott
Oracle, Sybase DBA
Remove the NO SPAM from my reply to address

On 26 Apr 1997 01:54:03 +0100, Andrew Gierth



 Wed, 13 Oct 1999 03:00:00 GMT   
 Bourne Shell vs C-Shell

In article <309F8F85BD7A7548.9BB58CB41FE2B89F.ED62FDC5478EF...@library-proxy.airnews.net>, rsc...@applink.net (R Scott) writes:

Maybe you have, but I wouldn't go around admitting it in public.

Then again, maybe you haven't.  Any _significant_ C shell script
will more than amply demonstrate C shell's plethora of woes.

--
Boyd Roberts <b...@france3.fr>                           N 31 447109 5411310

``Not only is UNIX dead, it's starting to smell really bad.'' -- rob



 Fri, 15 Oct 1999 03:00:00 GMT   
 Bourne Shell vs C-Shell

In article <8767xasixg....@erlenstar.demon.co.uk>, Andrew Gierth <and...@erlenstar.demon.co.uk> writes:

Ah, yes, what a gem.  The _C_ shell with && and || operators broken.
Perhaps that explains why its chock full of bugs.  Maybe Joy got them
'round the wrong way everywhere he used them in the code.

And who can forget?

    % if ($?foo) set bar=$foo
    foo: Undefined variable.

Hilarious.

--
Boyd Roberts <b...@france3.fr>                           N 31 447109 5411310

``Not only is UNIX dead, it's starting to smell really bad.'' -- rob



 Fri, 15 Oct 1999 03:00:00 GMT   
 Bourne Shell vs C-Shell

|Ah, yes, what a gem.  The _C_ shell with && and || operators broken.
|Perhaps that explains why its chock full of bugs.  Maybe Joy got them
|'round the wrong way everywhere he used them in the code.

One of my favourite pieces of frightening code was from csh.  I found it
debugging occasional SIGSEGVs of csh on a rather weird architecture.  It
looked something like:

xfree(char *p) {
        if (p < &p) free(p);

Seems rather than bothering to keep track of whether a pointer was
malloced or on the stack, Joy used the above heuristic.  Needless to
say, it wasn't guessing correctly on the architecture I was on...



 Fri, 15 Oct 1999 03:00:00 GMT   
 
   [ 11 post ] 

Similar Threads

1. Read command in bourne shell vs. K shell

2. Light Speed Bourne Shell! (was: Bourne shell tricks)

3. running bourne shell script from cshell

4. Bourne Shell compatible shells (was: Request: which shells)

5. BUG IN BOURNE SHELL AND/OR CSHELL ??

6. getting environment variables from c shell using Bourne shell

7. Changing from the Bourne shell to C-shell

8. Changing from the Bourne shell to C-shell

9. Process history under C-shell and Bourne shell


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software