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: 111731,47a06d19e281eb8d X-Google-Attributes: gid111731,public X-Google-Thread: 1164f8,47a06d19e281eb8d X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-03-04 13:03:50 PST Xref: gmd.de comp.org.decus:2595 comp.os.vms:41529 comp.sys.dec:13845 comp.unix.advocacy:803 Path: gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!convex!news.utdallas.edu!feenix.metronet.com!tachyon!montagar!davidc Newsgroups: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy Subject: Re: Is VMS Dying? Message-ID: <1994Mar4.160351.18742@avatar.montagar.com> From: davidc@avatar.montagar.com (David L. Cathey) Date: 4 Mar 94 16:03:50 CDT Followup-To: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy References: <1994Feb26.204059.4068@mixcom.mixcom.com> <1994Feb28.140951.24948@mcnc.org> Organization: Montagar Software Concepts, Plano TX In article , lmulcah@da_vinci.ecte.uswc.uswest.com (Larry Mulcahy) writes: > Those of you arguing in favor of VMS wildcards are desperately wrong. > There are a couple of issues here so let me take them one at a time. > > (1) The shell. In VMS you get DCL. With Unix your vendor probably > gives you sh, csh and ksh, and if you aren't satisfied there's bash, > tcsh and others. So we have the VMS way (bondage) vs. the Unix way > (freedom). In VMS, if you aren't satisfied with what the shell does > with respect to wildcards, grit your teeth and live with what the wise > fathers of DEC have bestowed on you. In Unix, you can take your pick of > the available shells, and source code is available for the free software > ones so you can get what you want one way or another. DCL also has different ways of dealing with command line and the also doesn't try to process wildcards at that level, since it independent of the applications as to what the arguments actually are. Are they file names that are wildcarded? Or are they something else. Your argument of "source code is available" is also programmer-centric, since your average computer user doesn't want to program, but get their work done. This is one reason why the desktop of choice is MS-DOS, an "O/S" that vastly outnumbers Unix as well as VMS. > (2) Wildcards. It's true that you could get a Unix shell to do it the > way DCL does, but this would be a mistake. In this I would agree, since almost every file-oriented command on Unix would break or become much less useful because of their inability to understand wildcards. > The VMS solution is for any > program that needs to be able to handle wildcards on the command line to > be written that way. Some programs are written that way, other's > aren't. So generally, the effects of > > $ program *.* > > (once you've gone through that burdensome business of defining a foreign > command) are unpredictable. One program will read every file in the > current directory, another will just think you're trying to do something > to a file named `*.*'. It makes good sense to have the > wildcard-expanding code in one place (the shell) rather than in every > single program, or worse, haphazardly there in one program and missing > in another. Again, counter-arguments to Unix wild-carding have also been made, since if forces the design of the utility to work with what the shell is able to give it in terms of files. Another oddity is that the shell only interprets wildcarded filenames for a single directory. However, if a recursive directory lookup is needed, the utility has to be able to perform that itself (provide its own wildcarding) since it is incompletly done by the shell. > (3) Subprocesses. VMS makes a big deal out of creating a subprocess and > redirecting its standard input, output and error; these things are > trivial in any Unix shell. What Unix can accomplish with a simple pipe > or pair of backquotes requires the painful and hamfisted /input= > /output= /error= syntax in DCL. When you combine regular expression > syntax with the find command, Unix leaves VMS in the dust with its > ability to search a directory heirarchy and generate the exact list of > file names you want and either put it on the command line or feed it as > input to another command. It has been noted that because of the simple operation of most of the Unix commands (the concept of "every program is a simple filter") requires simple processes and pipes. On VMS, there is often very little need get a list of file names and "put it on the command line or feed it as input to another command". On Unix, this is the general basis of operation. Not a criticism, the systems are just different. > Some operating systems, for example MS-DOS and OS/2, could never do it > the Unix way because they have crippling restrictions on the length of a > command line. I think in MS-DOS it's 128 bytes and in OS/2 256. If > these OSes did it the Unix way they'd get buffer overflows from a > > command * > > in even a medium-sized directory. In most versions of Unix it's > something like 32K bytes. I wouldn't be surprised if something like > this is going on in VMS, because once you understand the advantages of > having wildcard expansion in the shell, nothing else makes sense. Yet, MS-DOS has more users that Unix - despite it's crippling restrictions. Not that I'm gung-ho MS-DOS, but it is the system of the masses. The "advantages of having wildcard expansion in the shell" is sort of a cicular argument, since truly on Unix, nothing else would work - so of course it makes sense. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - David L. Cathey |INET: davidc@montagar.com Montagar Software Concepts |UUCP: ...!montagar!davidc P. O. Box 260772, Plano TX 75026-0772 |Fone: (214)-618-2117