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-02 11:53:27 PST Xref: gmd.de comp.org.decus:2535 comp.os.vms:41307 comp.sys.dec:13753 comp.unix.advocacy:750 Newsgroups: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy Path: gmd.de!newsserver.jvnc.net!netnews.upenn.edu!dsinc!ub!news.kei.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!csn!cherokee!da_vinci!lmulcah From: lmulcah@da_vinci.ecte.uswc.uswest.com (Larry Mulcahy) Subject: Re: Is VMS Dying? Message-ID: Followup-To: comp.org.decus,comp.os.vms,comp.sys.dec,comp.unix.advocacy Sender: news@da_vinci.it.uswc.uswest.com (IT Netnews) Nntp-Posting-Host: edsel Organization: US WEST Information Technologies X-Newsreader: TIN [version 1.2 PL2] References: <1994Feb26.204059.4068@mixcom.mixcom.com> <1994Feb28.140951.24948@mcnc.org> <2ksvt2$g9c@mail.fwi.uva.nl> <2kt229$eat@Krille.Update.UU.SE> <2ktkr2$nhb@Krille.Update.UU.SE> Date: Wed, 2 Mar 1994 19:53:27 GMT Overcome by nausea on 28 Feb 1994 21:39:48 +0100, Johnny Billquist (bqt@Krille.Update.UU.SE) retched up these words: : VMS commands can also take a list of filenames. : My point was that UNIX have no idea what a wildcard is. : If you give an asterisk as a filename to Unix, it will say : thank you and yes ma'm. : /bin/sh has been around for quite some time yes. I never said : that the workaround was invented last year. But it still is : a workaround because Unix still don't support wildcards in : filenames. : In some places, however, you will not get what you thought, : if you come from a DEC OS to unix. : Consider that you want to rename a bunch of files from : .foo to .bar : In VMS you say RENAME *.foo *.bar : If you try mv *.foo *.bar in unix, you'll get a nasty surprise. : mv thinks that all arguments up until the last one is a source : specification, and the last one is always a destination. : So, if you don't have any files named .bar, the : last file named .foo will get clobbered, otherwise : the last file named .bar, which already exists : will get clobbered. : Hmm, sorry about this. Just that I can get a little excited : when I think about the lousy solution Unix offers to people : who want wildcards. 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. (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. 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. (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. 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. -- Larry Mulcahy lmulcah@lookout.ecte.uswc.uswest.com larry@ambient.uucp ambient!larry@mnemosyne.cs.du.edu GCS d- p--- c++ l++ u+ e++ m n- h+ f? s !g w+++ t r !y The Failed Clinton Presidency: day 407, 1052 days to go