Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site fortune.UUCP Path: utzoo!watmath!clyde!burl!we13!ihnp4!fortune!rpw3 From: rpw3@fortune.UUCP Newsgroups: net.cog-eng Subject: Re: Whoever said anything about flag=yes - (nf) Message-ID: <2854@fortune.UUCP> Date: Tue, 27-Mar-84 04:04:25 EST Article-I.D.: fortune.2854 Posted: Tue Mar 27 04:04:25 1984 Date-Received: Wed, 28-Mar-84 00:49:39 EST Sender: notes@fortune.UUCP Organization: Fortune Systems, Redwood City, CA Lines: 49 #R:looking:-14100:fortune:29300006:000:2004 fortune!rpw3 Mar 26 22:11:00 1984 As far as remembering WHAT the possible options are, one of the niceties of TOPS-10 SCAN was that certain switches were built into the scanner, particularly /HELP and /HELP:SWITCHES. The former printed the help file (if available) or a short in-core help string, and the latter dumped the contents of the scanners parse table. /HELP:SWITCHES was ALWAYS a no-op as far as running the program, so you didn't have to worry about the program starting to work on you or going silent. (Type "cat" and wait for a "usage" message... ;-} ) You would get something like: $ cat -help=opt Options are: spacecrunch, unbuffered, visible Builtin: help, verbose, datesave $ The "builtins" are those options that are supplied by default in every program in the scanner itself. They are not necessary IMPLEMENTED in the scanner (except "help"), but the user knows that they will get parsed correctly. And then of course there is Tenex/TOPS-20, which allows a question mark ANYWHERE, and it prints out all possible choices and lets you continue typing. It works whether you type the question mark on a command, an option, or on a filename. (To get a list of all commands, just type a "?" to a prompt!) While some don't like that general style, it CAN certainly be done under UNIX, as evidenced by the version of C-shell (called "ncsh"?) which is floating around the UNIX community (orig. Ken Greer, HP) which implements the full Twenex command recognition/completion. (To clarify what follows, typed-in characters are in uppercase, though in real life they are lower): % CA where is your "query" character cal camera cat % caT C carny core cu.log % cat cU where is your "completion" char cat cu.log (actually overtypes the ) ...contents of cu.log ... % We have lots of history to guide us, if we listen. Rob Warnock UUCP: {sri-unix,amd70,hpda,harpo,ihnp4,allegra}!fortune!rpw3 DDD: (415)595-8444 USPS: Fortune Systems Corp, 101 Twin Dolphin Drive, Redwood City, CA 94065