On Thu, Nov 19, 1998 at 09:30:46PM -0800, richard winter wrote:
> a pre organized environment that has tools built in to it
> there are different shells....ie....c-shell...is for compliing c++,

Umm, actually, there's no relationship between the C-shell and C++;
the former predates the latter by most of a decade.

Unix shells tend to have only a few built-in functions; which ones
are depends on what's necessary to make it reasonably fast while
keeping it reasonably small.  So for example, "echo", which merely
echos its arguments back, is not built into the Bourne shell (sh) but
is built into the C-shell (csh).

But all the shells support I/O redirection, pipes, basic if-then-else
and while-do control structures, variables, and a few other things.

Well, that's not quite true.  Here's one of the gems of the 'net
from many years ago:

> # 366
> >From : PHIL REED                   To : USER FRIENDLIES
> > Subject : AN IDEA                 Date : Wed. 12/09/81 10:56
> Has anyone thought of grafting the pseudo-English parser of Zork
> or other dungeon games onto a shell? Not only would it be a cheap
> way to get the more natural syntax some people say they want,
> it could provide a very amusing interface, and add glamour and
> excitement to ordinary work:
> 
> % go to bin
> you are in ~jon/bin. there are many files here.
> % look
> you are in ~jon/bin. the directory contains:
>      date
>      date.c
>      readtape
>      scramble
> the only exit is up.
> % use date to create tmp
> done!
> % take tmp
> taken.
> % open tmp
> you open tmp to reveal:
>      Tue. November 24, 1981 (2:00pm EST)
> % take date.c
> taken.
> % look
> you are in ~jon/bin. the directory contains:
>      date
>      readtape
>      scramble
> the only exit is up.
> % inventory
> you are carrying:
>      date.c
>      tmp
> % goto src
> you are in ~jon/src. there are many files here.
> % drop date.c
> dropped.
> % throw tmp at printer
> the printer catches your file, turns it into paper, and
> leaves it in the basement.
> % look
> your are in ~jon/src. the directory contains:
>      date.c
>      scramble.c
>      readtape.c
> there are exits marked 'zshell' and 'secret'
> as well as the path leading up.
> % xyzzy
> you are back in your home directory. there are many files here.
> % run foo
> the foo dumps core.
> Oh dear! you seem to have gotten yourself killed.
> % attack core with sdb
>    .
>    .
> 

Credit goes to Gene Spafford for sending this along back in 1984.

---Rsk
Rich Kulawiec
[EMAIL PROTECTED]
____________________________________________________________________
--------------------------------------------------------------------
 Join The Web Consultants Association :  Register on our web site Now
Web Consultants Web Site : http://just4u.com/webconsultants
If you lose the instructions All subscription/unsubscribing can be done
directly from our website for all our lists.
---------------------------------------------------------------------

Reply via email to