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 16:46:59 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-proxy.baileynm.com!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:31:07 GMT Organization: TSS Inc. Message-ID: References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C2D48CE.FA4FF25A@fsi.net> <3C2E47D0.A7306F6A@ne.mediaone.net> NNTP-Posting-Host: citadel.in.taronga.com X-Trace: citadel.in.taronga.com 1009672267 36072 10.0.0.43 (30 Dec 2001 00:31:07 GMT) X-Complaints-To: usenet@taronga.com NNTP-Posting-Date: 30 Dec 2001 00:31:07 GMT X-Newsreader: trn 4.0-test72 (19 April 1999) Xref: archiver1.google.com comp.os.vms:57353 alt.sys.pdp10:8868 comp.sys.dec:10481 In article <3C2E47D0.A7306F6A@ne.mediaone.net>, Monty Brandenberg wrote: >Peter da Silva wrote: >> >How do I get the shell to "export" variables to "outer" levels (ala DCL >> >global symbols)? >> That isn't meaningful in UNIX, whether you're using a shell or one of >> the DCL implementations on UNIX. You might as well ask how you chroot >> in VMS. >Yes, it's meaningful on Unix and done awkwardly with a pull rather >than a push. The receiving environment needs to do some flavor of >a source/. on a program or script which emits shell directives. OK, you can force a UNIX system to emulate some aspects of the VMS way of handling symbolic names. It's not general, every application that needs to operate that way has to be specifically coded to implement it, but if you wantto insist on using a procedural programming model with global variables instead of the "pure function" dataflow model UNIX uses you can get that kind of behaviour. You can get the effect of a goto in Lisp, if you want. You just have to write your program as a big cond inside a loop and change the state variable the cond uses. You can write procedural code in Prolog. You can write dataflow code in VMS... I even implemented a shell in RSX-11 about 18 years ago, back before I realised that it was better to use the system the way it's designed rather than trying to make it look like UNIX (or VMS: I use DCL on VMS, MCR on RSX). > To >be of general use, all shell forms need to be supported so the >program or script, if halfway thought through, will have at least >csh and sh style options. A very ugly duckling with many examples >out there. Indeed, it's perfectly possible to write FORTRAN, COBOL, or BASIC code in any language as well. That doesn't make it the right thing to do. -- 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)