home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!spool.mu.edu!yale.edu!qt.cs.utexas.edu!cs.utexas.edu!sun-barr!news2me.ebay.sun.com!jethro.Corp.Sun.COM!Eric.Arnold@Sun.COM
- From: Eric.Arnold@Sun.COM (Eric arnold)
- Newsgroups: comp.unix.shell
- Subject: Re: Shell types (May be FAQ)
- Message-ID: <laqdhjINN34i@jethro.Corp.Sun.COM>
- Date: 8 Sep 92 23:24:35 GMT
- References: <715982479@majors1.cs.duke.edu>
- Reply-To: Eric.Arnold@Sun.COM
- Organization: Sun Microsystems, Inc.
- Lines: 72
- NNTP-Posting-Host: animus.corp.sun.com
-
- In article 715982479@majors1.cs.duke.edu, bfl@duke.cs.duke.edu (Brian Loss) writes:
- >In reading this newsgroup, I have seen all sorts of different shells
- >mentioned (tcsh, zsh, ksh, bash, etc.). Could someone tell me what the
- >differences between all these are, and what all of their advantages and
- >disadvantages are? Thanks.
- >
- >Brian Loss
- >P.S. If this is a FAQ, then please repost the FAQ list--I have not seen
- > it recently.
- >
- >--
- >Department of Computer Science, Duke University, Durham, NC 27706
- >Internet: bfl@cs.duke.edu
- >UUCP: mcnc!duke!bfl
-
-
- I don't know about an FAQ posting, but I'll spout my oppinion. After
- trying all of those above, I settled on the "zsh". I was looking for:
-
-
- - Bourne shell syntax.
- This is because most system scripts are Bourne shell, and
- it tends to have the most mature quoting and parsing. I've written
- some scripts using "csh", and I was always thwarted by some
- strangeness that turned out to be a widely know oversite in the
- language.
-
- I think the list of Bourne shell compatibles include "zsh", "ksh",
- and "bash". "tcsh" would have done OK in some respects, like
- interactive functionality, but for its "csh" nature.
-
- - Job control.
- This tends to be standard amongst everything but "/bin/sh".
-
- - History editing.
-
- Most of the shells seemed to allow history editing, either using "vi"
- or "emacs" styles.
-
- - Ergonomics for interactive accelerators.
-
- One of the really neat (delightful even :-) things about "zsh" is
- that you can just type "TAB" and it will expand almost ANYTHING:
- file names, command names, user names, history (E.g. "!?ls?:$"),
- wildcards, commands (E.g. `pwd`/), environment variables, display
- and toggle through options, and maybe more. Other shells have you
- typing a variety of control characters to get the same effects --
- meaning you just won't use them on a regular basis if you have to
- type "meta-control-shift-whatsit" to have it expand a wildcard, and
- "control-meta-alt-esc-whosit" (*) to expand a command.
-
-
- (*) Hyperbole added.
-
- - Other stuff:
-
- There is a lot of other stuff you get with "zsh" and others which you
- might like, (especially integer variable types like in "csh"), but I
- don't tend to use any, except for setting up my personal interactive
- environment, because it wouldn't be portable. For scripts, I try to
- restrict myself to either "perl" (for the real work) or "/bin/sh" (for
- the trivial/boot-up-level work).
-
-
- So that's my proselytism for "zsh". Obviously, I'm happy with it.
-
- -Eric
-
- Eric.Arnold@Sun.COM
-
- (I think a disclaimer might actually apply here, so: "Neither I, nor anyone
- else (especially my employer), said or believes any of the preceding message." )
-