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 17:00:35 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.kjsl.com!news.usenet2.org!citadel.in.taronga.com!not-for-mail From: peter@taronga.com (Peter da Silva) Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: historical evidence of what went wrong at DEC Date: 30 Dec 2001 00:48:49 GMT Organization: TSS Inc. Message-ID: References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C2D48CE.FA4FF25A@fsi.net> <3C2E506A.152D03E0@fsi.net> NNTP-Posting-Host: citadel.in.taronga.com X-Trace: citadel.in.taronga.com 1009673329 36744 10.0.0.43 (30 Dec 2001 00:48:49 GMT) X-Complaints-To: usenet@taronga.com NNTP-Posting-Date: 30 Dec 2001 00:48:49 GMT X-Newsreader: trn 4.0-test72 (19 April 1999) Xref: archiver1.google.com comp.os.vms:57356 alt.sys.pdp10:8870 comp.sys.dec:10485 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. >> >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. >> >How do I enable command/option abbreviation? >> In a script? You don't want to! >How do you know this? Hard earned experience. Writing scripts and performing interactive work require different styles of coding, and abbreviations don't belong in scripts that are meant to remain portable. >> >How do I get filespec expansion to recurse directories? >> Find. >"find" is aexternal program, not the shell. 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. >> >How do I get the shell to "export" variables to "outer" levels (ala DCL >> >global symbols)? >> That isn't meaningful in UNIX >Well, actually, yes it is. However, since it isn't possible, most folks >find other ways of doing it or just live without that capability. And VMS has no equivalent to "chroot", so most folks find other ways of doing it or just live without that capability. UNIX has much stronger walls between program instances than VMS, and weaker walls between processes. This has advantages and disadvantages: creating a new instance of an environment is cheap on UNIX, so people do it all the time, and it's expensive on VMS, so people do it rarely. Modifying state outside the program instance is complex on UNIX, so people do it rarely, and it's easy on VMS, so people do it all the time. Work in the model that's appropriate for you. My "make" on VMS took a Makefile and produced an equivalent DCL scripp, then ran it, rather than taking on the overhead of creating a new "shell" for each rule. >> , 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? >> >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 seem to have a fundamental misunderstanding of the UNIX shell, why it works the way it does, and the kinds of control and dataflow structures that are appropriate for it. You're like a C or Fortran programmer trying to make sense of Icon or Prolog, and complaining because they make it too hard to stuff all your state into globals. -- Rev. Peter da Silva, ULC. "Cave cuniculos lagana ferentes" "Be conservative in what you generate, and liberal in what you accept" -- Matthew 10:16 (l.trans)