garys@bunkerb.UUCP (Gary Samuelson) (02/22/84)
Recently, net.unix was treated to an "adventure shell," showing how the sentence structure of adventure could be used in a Unix user context. Then we were treated to another (not THE other) side of the story -- a script from adventure as it might appear if you were intereacting with DCL (one of, again not THE command languages available with VMS). So, I guess it is time to show the same script, using UNIX-style commands. $ adv Usage: adv [ionsewNSEWudULtTDKfBwlI] [bwrCpmPaBvsednlfkjScRg] $ adv l road $ adv i building keys lamp food bottle water $ adv t k l f W building $ adv I keys lamp food bottle water $ adv O road $ adv L road, stream, building $ adv -3 D stream slit grate locked $ adv U grate unlocked $ adv d chamber grate unlocked $ adv w cobbles wicker cage $ adv t w cobbles $ adv q core dumped (You get the general idea... or do you?) A little explanation (totally un-UNIX of me): 1) Each time a UNIX command is executed, it does one thing and then exits. Thus you have to type 'adv' every time. 2) The syntax for the UNIX-style adventure consists of single letter verbs followed by single letter objects. If there are more than 52 verbs (since case is significant), too bad. If there are more than two verbs which start with the same letter, well, the extra ones will have to use letters other than their initials. 3) Each time a command is executed, if one word is sufficient to identify the location to the experienced adventurer, that's all you get. 4) 'adv L' is UNIX for 'look'. It gives you three words, maybe as many as five. Gary Samuelson ittvax!bunker!bunkerb!garys UNIX is a trademark of Bell Laboratories. VMS and DCL are trademarks of Digital Equipment Corporation
fair@dual.UUCP (Erik E. Fair) (02/28/84)
Now that's not fair. You used an uncivilized shell! If you had been using csh, you could alias all those commands to obvious things. Furthermore, you could use the history mechanism to repeat things quicker. Bourne shell, I concede, is superior to csh in it's flexibility of signal handling, and it does OK for programming shell scripts, but god forbid that you should ever want to use it for an interactive user interface. Please, Help Stamp Out Bourne Shell, Erik E. Fair dual!fair@BERKELEY.ARPA {ihnp4,ucbvax,cbosgd,decwrl,amd70,fortune,zehntel}!dual!fair Dual Systems Corporation, Berkeley, California
dbaker@nwuxd.UUCP (Darryl Baker) (02/28/84)
I'm of the opinion that the Korn Shell is superior to both the Bourne and the C shell. Since it does the UCB job control and has all the nice features of the Bourne shell. Darryl Baker ihnp4!nwuxd!dbaker (running the Korn shell)
phil@amd70.UUCP (Phil Ngai) (02/29/84)
I just love it when people from the phone company tell us about these wonderful tools they won't let us have for love or money. (in reference to the Korn shell) -- Phil Ngai (408) 988-7777 {ucbvax,decwrl,ihnp4,allegra,intelca}!amd70!phil
gwyn%brl-vld@sri-unix.UUCP (03/01/84)
From: Doug Gwyn (VLD/VMB) <gwyn@brl-vld> But the Korn shell is not available to the public, last I heard.
ron@Brl-Tgr.ARPA (03/29/84)
From: Ron Natalie <ron@Brl-Tgr.ARPA> Will all you damn Bell Labbers quit boasting about the superiority of the Korn shell unless you are willing to distribute one that works to the rest of the world. -Ron
Laws@SRI-AI.ARPA (03/29/84)
From: Ken Laws <Laws@SRI-AI.ARPA> I do not agree with either the tone or content of Ron Natalie's message. However, I would appreciate it if discussions of the Korn shell included specific examples of the shell's syntax or capabilities. There are those of us on the list who have no information about the shell, and repeated mention of its name has done nothing to enlighten us. -- Ken Laws -------
beattie@Mitre-Gateway.ARPA (03/29/84)
From: brian beattie <beattie@Mitre-Gateway.ARPA> I agree with Ron's message completely. I get very tired of listening to Bell Labs bragging about how good they are/gotit if I can't get it I don't want to hear about it. That is not to say I am not willing to listen to discussions about UNIX stuff from Bell Labs I just don't like feeling like a poor relation. beattie