From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII 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: 2002-01-08 13:02:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.tele.dk!small.news.tele.dk!195.54.122.107!newsfeed1.bredband.com!bredband!newsfeed1.telenordia.se!algonet!uab.ericsson.se!erinews.ericsson.se!newstoo.ericsson.se!not-for-mail From: Jan-Erik =?iso-8859-1?Q?S=F6derholm?= Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: historical evidence of what went wrong at DEC Date: Tue, 08 Jan 2002 21:59:41 +0100 Organization: ericsson Message-ID: <3C3B5DBD.217B4B65@aaa.com> References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <0wd8uIhJkzae@eisner.encompasserve.org> NNTP-Posting-Host: arael26m41.sw.ericsson.se Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mozilla 4.74 [en] (Windows NT 5.0; U) X-Accept-Language: en Xref: archiver1.google.com comp.os.vms:59186 alt.sys.pdp10:9297 comp.sys.dec:11220 I think you are missing two things here... 1. Command lines parameters. - The DIRECTORY command takes *one* parameter. That parameter should be the file or files to be listed. The paramater could a single valid VMS file spec (HOST"User pw"::dev:[dir]name.ext;version) with wildcards and defaults in apropriate places, or a number of file specifications separated with a comma ",". It's still *one* single parameter. - The COPY command takes two paramaters. The input file spec and the output file spec. The first paramater (input file spec) could be a single file spec or a combination of multiple file specifications separated by a comma ",". It's still only *two* parameters as seen by COPY.EXE. 2. Defaulting a missing version to - The DIRECTORY command will accept a file specification without a specific version. This will defaults to . So "DIRECTORY *.C" is valid. - The DELETE command either take a ";*" version wildcard to mean all versions, or any of the other ways of specifying absolute or rellative versions numbers. So "DELETE *.C" is invalid. So, "*.c *.x" is valid syntax to those commands that takes two input parameters and where these parameters dont need to have version numbers. I can think of COPY, APPEND and DIFFERENCES. "*.c *.x" is invalid syntax if the command do *not* accept two parameters. Simple, isn't it :-) And if foo is some program you have written, you'll get exactly "*.c *.x", and it's up to foo to do whatever it want with it... Jan-Erik S�derholm. reobert@bonomi.invalid wrote: > OK, then *HOW* do I "delete all '.c' files, _and_ delete all files of the > same base name but with an '.x' extension." since it *is* 'illegal syntax'? > > What does: "foo *.c *.x" mean, when 'foo' is an arbitrary (even _user- > written_) command? Is the user code free to interpret the 'unmodified' > tokens as it sees fit, or are the wildcards "pre-interpreted" by the > command-line interpreter in a single manner? Apparently it is *not* the > command-line interpreter, since "*.c *.x" is legal in some cases, and illegal > in others. > > How can it be "consistent", when it's valid in some instances, and 'illegal > syntax' in others?