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 07:38:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!newsfeed.direct.ca!look.ca!feed2.onemain.com!feed1.onemain.com!cyclone2.usenetserver.com!usenetserver.com!news01.optonline.net!news02.optonline.net.POSTED!not-for-mail From: Arthur Krewat Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: historical evidence of what went wrong at DEC Organization: Kilonet.net Message-ID: <3C2DE213.7A92DF0C@bartek.dontspamme.net> References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C2D48CE.FA4FF25A@fsi.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.78 [en] (X11; U; SunOS 5.8 i86pc) X-Accept-Language: en Date: Sat, 29 Dec 2001 15:38:04 GMT NNTP-Posting-Host: 24.186.100.134 X-Trace: news02.optonline.net 1009640284 24.186.100.134 (Sat, 29 Dec 2001 10:38:04 EST) NNTP-Posting-Date: Sat, 29 Dec 2001 10:38:04 EST Xref: archiver1.google.com comp.os.vms:57303 alt.sys.pdp10:8846 comp.sys.dec:10440 "David J. Dachtera" wrote: > > Michael Zarlenga wrote: > > > > In comp.os.vms Bill Pechter wrote: > > : As far as the Unix vs. VMS issue... > > : Considering I make my living on Unix boxes now... it took years of work > > : to get me as productive as I was in days with VAX/VMS. > > : That's pretty high praise for OpenVMS. > > > > 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? > > How do I get a shell to check/verify command line options and values (if > any) before it invokes the program? Write the script to verify command line options, then do it's main work. Step 1, step 2... > How do I enable command/option abbreviation? This is UNIX, you don't! The best you can do is make commands/options as short as possible (like -f ). Can't get much shorter than that! > How do I get filespec expansion to recurse directories? "find". In Bourne shell, a "for a in `find . -type f`" will loop through all files from "." and below. > How do I get the shell to perform simple numeric calculations? ...string > manipulation (concatenation, reduction ala DCL)? ...conversion from > binary datatypes to string datatypes (ala F$CVxI())? In shell, there is no distinction between numbers and strings. Doing "A=`expr 2 + 2`" will give you 4 ... bc is another way. Strings? A=${B}${C} - this concatenates B and C and assigns it to A - can't get much easier than that. Reduction? use sed/awk, etc. > How do I get the shell to "export" variables to "outer" levels (ala DCL > global symbols)? >From ksh/sh, do ". script", this runs the script and anything defined in it with "A=thisandthat; export A" will wind up being in your main shell's environment. > How do I get the shell to open/process an indexed file (i.e., do C-ISAM > the way DCL does RMS)? ...return information about the system (ala > F$GETSYI())? ...return info. re: the crontab or "atd" (ala F$GETQUI())? There are basic "read" primitives in the shell, but for more complicated tasks, awk works well and there are others. Information about the system? A=`uname -a` sets A to (on my system) "SunOS kilowatt 5.8 Generic_108529-10 i86pc i386 i86pc". uname -r returns "5.8",etc. etc. > 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). When I first went to UNIX from VMS, I was considerably lost - within a few months I was using Bourne shell like it was my first love. It is considerable easier to program than DCL. > Of course, and as always, YMMV considerably. same here! aak