From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fdb0e,cdca3dc8d6167cd4 X-Google-Attributes: gidfdb0e,public X-Google-Thread: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-12-29 20:44:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!nntp2.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!bin3.nnrp.aus1.giganews.com.POSTED!not-for-mail Message-ID: <3C2E9C1C.64718678@fsi.net> From: "David J. Dachtera" X-Mailer: Mozilla 4.77 [en] (Win95; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: historical evidence of what went wrong at DEC References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C2D48CE.FA4FF25A@fsi.net> <3C2E506A.152D03E0@fsi.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Date: Sat, 29 Dec 2001 22:43:49 CST Organization: Giganews.Com - Premium News Outsourcing X-Trace: sv3-0xgQLX5QoNYnpj9DaOqpVad0ex5Mehcs6s9ngn6BSZOI9eBJZyh2aP5611NoF0TyhnuI0nv5qlH+4lV!HTkhpcc6P+3azpNzhunJF2kQDvsdYvdQnhybeQqU8EZbn3UeI29O+NFdpA== X-Complaints-To: abuse@GigaNews.Com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly Date: Sun, 30 Dec 2001 04:43:49 GMT Xref: archiver1.google.com comp.os.vms:57364 alt.sys.pdp10:8877 comp.sys.dec:10493 Peter da Silva wrote: > > In article <3C2E506A.152D03E0@fsi.net>, > David J. Dachtera wrote: > >Peter da Silva wrote: > >> In article <3C2D48CE.FA4FF25A@fsi.net>, > >> David J. Dachtera wrote: > >> >> This 15+yr VMS user who also has 2+yrs of Unix finds Unix much > >> >> easier to use for most of the tasks I do. I really hate to say > >> >> that, but its scripting languages are light years beyond DCL. > > >> >In what way? > > >> For scripting. > > >DCL Supports "scripting". See HELP "@". > > I KNOW DCL supports scripting. I've been using DCL since, oh, about 1983. > > I prefer the UNIX scripting model to DCLs. I can write DCL-style procedural > scripts on UNIX using any number of more-or-less conventional languages, if > I want to... includeing at least two commercal implementations of DCL. Then, what's the point? > >> >How do I get a shell to check/verify command line options and values (if > >> >any) before it invokes the program? > > >> This doesn't make sense on UNIX, > > >Why not? (I suspect the answer may be "for legacy reasons".) > > Because UNIX has a completely different command line model than VMS. A UNIX > command line is an array of strings, not a structured language construct. Exactly my point. Other than placing itself between the kernel and the programmer, teh shell does little or nothing you can't do yourself (without the shell). > [snip] > The UNIX scripting model is a dataflow engine, using the shell as glue to > bind together small simple applications. You can not talk about shell > scripting and exclude external programs. You might as well talk about > driving a car without any roads or traffic regulations. ...but the original poster was comparing DCL to the scripting languages, not the external utilities they may invoke. Important distinction. > [snip] > >> , whether you're using a shell or one of > >> the DCL implementations on UNIX. You might as well ask how you chroot > >> in VMS. > > >Simple: > >$ DEFINE/EXEC/SYSTEM SYS$SYSTEM new_path_specification > > What happens if you access DUA0: directly at this point? Yes. It's still MOUNTed and available. What's your point? Remember also that the concept of a filesystem "root" does not translate directly to VMS, which deals with disk volumes rather than the whole of storage appearing as a single resource beginning at a specific point ("/"). You can even create your own "roots", as in "rooted logical names". > >> >How do I get the shell to open/process an indexed file (i.e., do C-ISAM > >> >the way DCL does RMS)? > > >> You call a utility program to do it. > > >Then, the external program is doing it, not the shell. > > Again, you can not make that distinction. You not only can, you *MUST*! Try this: find a way to "break" the path to your utility programs (clobber the PATH, rename /bin to /binbin, or whatever). Now can you "ls *"? (No.) Can you "echo *"? (Yes.) So, yes, the concept of commands which are "internal" to the shell vs. those which are not is vitally important. Same is true in VMS. If you have CMEXEC privilege, reDEFINE/EXEC SYS$SYSTEM to SYS$LOGIN: (/JOB or /PROCESS should not matter). Now, can you SET PROCESS/PRIORITY=4? (No.) Can you SET DEFAULT SYS$DISK:[]? (Yes.) That's because SET PROCESS invokes the SET.EXE program, which by default is sought in the SYS$SYSTEM path. SET DEFAULT invokes "cliroutine setdefalt" (i.e., it's an "internal" command). > You seem to have a fundamental misunderstanding of the UNIX shell, Actually, no. I understand it just fine, thank you, as illustrated above. -- David J. Dachtera dba DJE Systems http://www.djesys.com/ Unofficial Affordable OpenVMS Home Page: http://www.djesys.com/vms/soho/