Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!ittvax!bunker!bunkerb!garys From: garys@bunkerb.UUCP (Gary Samuelson) Newsgroups: net.unix,net.jokes Subject: Adventure in UNIX commands Message-ID: <303@bunkerb.UUCP> Date: Wed, 22-Feb-84 10:51:16 EST Article-I.D.: bunkerb.303 Posted: Wed Feb 22 10:51:16 1984 Date-Received: Thu, 23-Feb-84 01:36:52 EST Lines: 95 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