From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,47a06d19e281eb8d X-Google-Attributes: gidf7344,public X-Google-Thread: f6134,47a06d19e281eb8d X-Google-Attributes: gidf6134,public X-Google-Thread: 1164f8,47a06d19e281eb8d X-Google-Attributes: gid1164f8,public X-Google-Thread: 111731,47a06d19e281eb8d X-Google-Attributes: gid111731,public X-Google-ArrivalTime: 1994-03-08 09:56:28 PST Xref: gmd.de comp.org.decus:2720 comp.os.vms:41821 comp.sys.dec:14012 comp.unix.advocacy:934 Path: gmd.de!newsserver.jvnc.net!yale.edu!yale!gumby!newsxfer.itd.umich.edu!sol.ctr.columbia.edu!howland.reston.ans.net!cs.utexas.edu!convex!news.utdallas.edu!feenix.metronet.com!tachyon!montagar!davidc Newsgroups: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy Subject: Re: Is VMS Dying? Message-ID: <1994Mar8.125628.18773@avatar.montagar.com> From: davidc@avatar.montagar.com (David L. Cathey) Date: 8 Mar 94 12:56:28 CDT References: <1994Feb26.204059.4068@mixcom.mixcom.com> Organization: Montagar Software Concepts, Plano TX In article , rockwell@nova.umd.edu (Raul Deluth Miller) writes: > Chris Lishka: > * Program-centerred command syntax. VMS uses a mechanism > to hide the actual programs being run from the user. For > example, the "SET" and "ANALYZE" commands actually run > several different executables depending on what you > choose (i.e. "ANALYZE DISK" vs. "ANALYZE CRASH"). > > This is poorly stated [e.g. what about cc?]. > > In my opinion, unix provides a much higher level of modularity than > VMS. I'm not sure how to quantify this. I know it's not even true > for the system administrator. I suspect that the system administrator > has an easier time of it on VMS because users are more restricted. Of > course, VMS is so well designed that users don't have any reason to > have the restrictions lifted... Not a higher level of modularity, it's just that the modularity is divided across different lines. With Unix, you have a pretty sharp division between the shell and the program. With VMS, there is a division between DCL and the command definition and then again at the program. There are defined interfaces between them, though they are different than the interfaces with Unix (CLI$ routine calls rather than getenv() and argc/argv). Making the command syntax a separate module from the program allows you to change the command syntax without changing the program. > Back to cc -- cc calls a variety of sub-programs, but it calls them as > modules. SET or ANALYZE seem to be nothing more than a giant switch > statement. This implies something about the mental model one must > build to understand each of these commands. Basically, you're correct. But even in Unix, most commands have an actual case/switch statement in them to parse their options as well. The shell has to hash the command (again, a different type of switch) to determine which/where the program to run is. It's just a matter of where the switch is, but under any O/S, some switch/hash/lookup must be done. The mental model is indeed differnt, but that not make one superior to the other. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - David L. Cathey |INET: davidc@montagar.lonestar.org Montagar Software Concepts |UUCP: ...!montagar!davidc P. O. Box 260772, Plano TX 75026-0772 |Fone: (214)-618-2117 NOTE: Due to circumstances beyond my control, please use the new Internet address until further notice.