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 10:41:28 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!diablo.theplanet.net!news.theplanet.net!lucifer-ec0!nobody From: hmv@port.ac.uk (Mike Meredith at home) Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: historical evidence of what went wrong at DEC Date: Sat, 29 Dec 2001 14:25:04 +0000 Sender: mike@port.ac.uk Message-ID: <0ojk0a.76k1.ln@lucifer-ec0> References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C2D48CE.FA4FF25A@fsi.net> NNTP-Posting-Host: modem-1231.alakazam.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news8.svr.pol.co.uk 1009651287 6951 217.135.15.207 (29 Dec 2001 18:41:27 GMT) NNTP-Posting-Date: 29 Dec 2001 18:41:27 GMT X-Complaints-To: abuse@theplanet.net X-Newsreader: knews 1.0b.1 Xref: archiver1.google.com comp.os.vms:57314 alt.sys.pdp10:8852 comp.sys.dec:10449 In article <3C2D48CE.FA4FF25A@fsi.net>, "David J. Dachtera" writes: > Michael Zarlenga 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. What scripting languages ? Unix scripting is pretty attrocious once you get to something serious (anything more than 100 lines, and I switch to Perl). > How do I get a shell to check/verify command line options and values (if > any) before it invokes the program? Under Unix, it's the responsibility of the program to check command line options and values. This may be a mistake, but it's too late to change now. And there is a utility to help process command line options in a shell script --- getopt. > How do I enable command/option abbreviation? Two different things under Unix. Command abbrieviations under Unix are done with shell aliases. Option abbrieviations are dealt with by the script. > How do I get filespec expansion to recurse directories? Filespec expansion is done by the shell. If you want to recurse through directories, use a shell that supports it (zsh). > How do I get the shell to perform simple numeric calculations? See the expr utility > ...string > manipulation (concatenation, reduction ala DCL)? No idea as I don't know DCL, but there's plenty of utilities to manipulate strings. > ...conversion from > binary datatypes to string datatypes (ala F$CVxI())? This is an area where traditional scripting is weak ... you'd probably have to use something like Perl. > How do I get the shell to "export" variables to "outer" levels (ala DCL > global symbols)? Can't. Why do you need to ? > How do I get the shell to open/process an indexed file (i.e., do C-ISAM Can't unless your C-ISAM/whatever library supports utilities to do the job. > the way DCL does RMS)? ...return information about the system (ala > F$GETSYI())? ...return info. re: the crontab or "atd" (ala F$GETQUI())? No idea what F$GETSYSI() does, but there's plenty of utilities that'll return information about the system. And 'crontab -l' or 'atq' should show the information you need. > 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). It may be stone-age, but it's a little harsh to criticise Unix for not being VMS. I've never written a DCL script (fiddling with LOGIN.COM doesn't count), but if I ever do, I hope I won't make the mistake of trying to get VMS to behave like Unix