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: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-Thread: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-ArrivalTime: 2001-12-29 21:05:32 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!enews.sgi.com!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!border1.nntp.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!bin1.nnrp.aus1.giganews.com.POSTED!not-for-mail Message-ID: <3C2EA123.ECBCDB31@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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Date: Sat, 29 Dec 2001 23:05:16 CST Organization: Giganews.Com - Premium News Outsourcing X-Trace: sv3-CCf5b26okyQZVHZ9pDrF1fViAt/G1i9OPcsvbafYpAsGAEA9E5nsBuC/hClJg+fFnYZM4oxQpLV7SDS!G8cYLdpo0jbwG7b8hIVK2xHSxuj1UUAoDdpxnjjnBNu37bhmyPrGXQiuBQ== 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 05:05:16 GMT Xref: archiver1.google.com comp.os.vms:57367 alt.sys.pdp10:8879 comp.sys.dec:10496 Michael Zarlenga wrote: > > In comp.os.vms 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? > > Just its ability to do functions which return values is > worth a lot. In DCL the next best thing we have is CALL > but then you have to set global variable to communicate > return values back to the caller. Use GOSUB instead then. You can't pass parameters on the GOSUB statement, but all local and global symbols are "visible" regardless of the GOSUB depth. CALL is like "@" - it creates a new procedure depth. > Toss in the ability to include other .ksh code into the > current .ksh program as code and you have a much more power- > ful scripting language. Can you provide an example? Your explanation is confusing. > The ability to trap all signals (except for -9) is another > feature that is very useful. set control=(y) and on control > frequently don't work as expected in .COM programs - the ^Y > may terminate the command running, not the DCL .COM. This is the documented behavior. SET CONTROL is subject to the current state of error traping. SET NOON (NO ON) over-rides SET CONTROL in that CTRL+Y may terminate a command (especially if its external), but the procedure which invoked the command will ignore the $STATUS returned if SET NOON is in force. > : How do I get a shell to check/verify command line options and values (if > : any) before it invokes the program? > > I forget, there is an option with ksh, though, that will > validate command syntax. How do you do it with DCL? Stated simply, DCL parses the command line before it invokes the associated command program or cliroutine. If the command syntax, or any element of it, is invalid, DCL will reject the command without ever invoking the associated program or cliroutine. > : How do I enable command/option abbreviation? > > No can do. I know. Bummer. > : How do I get filespec expansion to recurse directories? > > find "find" is an external program, not the shell. > [snip] > : How do I get the shell to "export" variables to "outer" levels (ala DCL > : global symbols)? > > I suppose you could write them to a file that is executed > by the caller after the ksh finishes. That'd be one work-around. There's probably others... > [snip] > : I'm sure there are features of the shells, perl, python, etc. that you > : find useful. To me, it's still all stone-age computing (Linux, Solaris, > : *BSD). > > And I'm sure you realize that 99% of the things you pointed > out are easier in VMS/DCL than in Unix/ksh are not things > people do all that frequently. Maybe - but they're things I have to do in DCL procedures every day. So, they're important to me. -- David J. Dachtera dba DJE Systems http://www.djesys.com/ Unofficial Affordable OpenVMS Home Page: http://www.djesys.com/vms/soho/