From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,47a06d19e281eb8d X-Google-Attributes: gidf7344,public X-Google-Thread: f6134,47a06d19e281eb8d X-Google-Attributes: gidf6134,public X-Google-Thread: 1164f8,47a06d19e281eb8d X-Google-Attributes: gid1164f8,public X-Google-Thread: 111731,47a06d19e281eb8d X-Google-Attributes: gid111731,public X-Google-ArrivalTime: 1994-03-10 11:11:21 PST Xref: gmd.de comp.org.decus:2873 comp.os.vms:42068 comp.sys.dec:14157 comp.unix.advocacy:1015 Path: gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!att-in!att-out!pacbell.com!ihnp4.ucsd.edu!swrinde!cs.utexas.edu!convex!seas.smu.edu!mic!tachyon!montagar!davidc Newsgroups: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy Subject: Re: Is VMS Dying? Message-ID: <1994Mar10.141121.18785@avatar.montagar.com> From: davidc@avatar.montagar.com (David L. Cathey) Date: 10 Mar 94 14:11:21 CDT Followup-To: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy References: <1994Feb26.204059.4068@mixcom.mixcom.com>< Distribution: world Organization: Montagar Software Concepts, Plano TX In article , rockwell@nova.umd.edu (Raul Deluth Miller) writes: > What I'm asking is what if you are writing an application, > . what if you want to arrange the arguments differents rather than > . have all the file names at the very end of the command line? > > Huh? What's your restriction here? COPY *.C *.C_BACKUP Where does the end of the first argument expansion end and first begin? If there is no current *.C_BACKUP the command fails, but if there is the results are completely different but incorrect. There is no hint given by the shell as to where the two arguments ar. > . As to what purpose, that's the programmers decision, and shouldn't > . be forced because of the nature of what the shell is going to do. > > If you don't like what the shell is going to do, you don't have to use > the shell. But for a general purpose program, someone else may use the shell. Or a different shell. If I'm not going to use the shell to call my program, what should I use? > . For example: > . $ SEARCH *.* STRING > . I decide I like a "grep" like organization, so I change the command > . definition (but no code) to get: > . $ GREP STRING *.* > > What is it about the command definition that makes it "not code"? I > had more trouble finding doc on command definitions than I had finding > doc on using the linker. And, command definitions have a lot of > complexity to them. Seems to me that command definitions are just a > specialized programming language. In a way you're correct. Consider it an interface between the shell and the program. The command definition provides the shellhoww the command should look to the user, then provides the information to the program that it wants. It separates the syntax of the command from the program. It add modularity to the DCL/command-syntax/program interfaces. X-window widgets work in a similar fashion, instead of gadgets and widgets, you have parameters and qualifiers that trigger different sections of code. I'm not sure what problems you've had with the linker, but 99% of the time a "LINK myprog" works just fine... Or "LINK myprog,rnt1,rnt2,..." > By the way, does VMS have support for regular expressions in its text > handling subsystems [editors, viewers, searchers]? In some places... In general no, since "metacharacters" are real characters, too... - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - David L. Cathey |INET: davidc@montagar.lonestar.org Montagar Software Concepts |UUCP: ...!montagar!davidc P. O. Box 260772, Plano TX 75026-0772 |Fone: (214)-618-2117 NOTE: Due to circumstances beyond my control, please use the lonestar.org address until further notice.