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-31 20: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: 1 Jan 2002 03:58:43 GMT Organization: TSS Inc. Message-ID: References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C2E9C1C.64718678@fsi.net> <3C310556.DFD5D97B@fsi.net> NNTP-Posting-Host: citadel.in.taronga.com X-Trace: citadel.in.taronga.com 1009857523 68378 10.0.0.43 (1 Jan 2002 03:58:43 GMT) X-Complaints-To: usenet@taronga.com NNTP-Posting-Date: 1 Jan 2002 03:58:43 GMT X-Newsreader: trn 4.0-test72 (19 April 1999) Xref: archiver1.google.com comp.os.vms:57598 alt.sys.pdp10:8941 comp.sys.dec:10646 In article <3C310556.DFD5D97B@fsi.net>, David J. Dachtera wrote: >Peter da Silva wrote: >> Since that's exactly what it's supposed to do, and very little more, what >> *is* your point? DCL is a procedural programming language (albeit one with >> fairly primitive control structures) that sometimes runs external programs >> to perform commands. The UNIX shell is a nearly functional programming >> language that primarily controls the dataflow between external programs. >...and DCL is not? Um, no. DCL is a procedural language, not a functional one. >> The original poster was talking about the ease of programming using the >> UNIX shell compared to using DCL. Since you can't do anything in the shell >> without external programs, >It would probably be more accurate to say that the shell, under the >direction of a script, controls how those external programs are used. And your point is? >The actual "scripting" capability comes from the shell, not the CUSPs. The scripting capability comes from the use of the shell to combine pipes and filters. It doesn't exist without both. >> Chroot completely replaces the user-level view of the entire file and >> device namespace with the newly constructed subset. If I haven't mounted >> da0s2 in that namespace, it's not visible. >I believe part that may have been snipped from that same post may have >gone on to say the the idea of a filesystem "root" does not translate >directly to VMS. That doesn't mean you couldn't theoretically perform the equivalent of a chroot, by overlaying new mappings over things like DUA0: >> >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. >> But why stop there. Let's unmount all the devices, format all the file >> systems, and overwrite all the open shared libraries in memory! Hey, now >> you can't do anything! >...but you haven't proved anything, either. Neither have you. >> I completely fail to see why the behaviour of a system that you've >> deliberately broken has any bearing on the utility of the shell as a >> scripting environment on a working system. >Then ask yourself: do the CUSPs (Commonly Used System Programs) behave >differently depending on which shell (read: scripting facility) is used? I imagine some might. Certainly the way you use them is going to differ slightly if you have a pure shell (like rc or the Bourne shell) or a hybrid like csh or bash. And programs like tset examine $SHELL and change their behaviour to match. >Get it *NOW*? Nope. -- Rev. Peter da Silva, ULC. WWFD? "Be conservative in what you generate, and liberal in what you accept" -- Matthew 10:16 (l.trans)