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: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2002-01-08 15:55:52 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!netnews.com!xfer02.netnews.com!newsfeed1.cidera.com!Cidera!iquest!news1.iquest.net!not-for-mail From: "JD" Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C3B5DBD.217B4B65@aaa.com> <3C3B7DFA.91667AB7@iee.org> Subject: Re: historical evidence of what went wrong at DEC MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Tue, 8 Jan 2002 19:01:35 -0500 NNTP-Posting-Host: 198.70.149.90 X-Complaints-To: news-abuse@iquest.net X-Trace: news1.iquest.net 1010534063 198.70.149.90 (Tue, 08 Jan 2002 18:54:23 EST) NNTP-Posting-Date: Tue, 08 Jan 2002 18:54:23 EST Xref: archiver1.google.com comp.os.vms:59238 alt.sys.pdp10:9306 comp.sys.dec:11230 "a.carlini" wrote in message news:3C3B7DFA.91667AB7@iee.org... > "John S. Dyson" wrote: > > > > wrote in message > > > Unix isn't really any better. There is no way -- from inspection of the > > > command-line only -- to determine whether or not something is even a > > > filename. If there were, rm wouldn't get confused when you try to hand > > > it filenames beginning with '-'. > > > > > rm doesn't get confused... rm provides an escape mechanism (--) or the > > I thin khe meant given the command line: > foo -t wibble wobble > exactly what is (are) the filename(s) if any? > Using the standard argument mechanism, the '-t' is a switch. '-' is the standard switch character, but it is possible to violate the standard to provide a very transparent reading of command args. The parsing of UNIX switches was purposely provided by a subroutine package (a very simple one, in fact) to provide consistancy. If getopt (or newer) packages are used, that switch will be detected appropriately, but might be ignored by the program developer. In all cases, the args are passed to the program with the shell (modulo the quoting mechanisms.) With some other CLIs, this behavior isn't necessarily true. The syntax/semantics of SHELL expansion is very consistant. What programs do with it can be wierd or not. With SHELL expansion, one could write a program to delete the third expanded filename, but that is an absurd complaint in this discussion context. I am surprised that no-one has complained about the '/' in a filename problem :-). Eccentric parsing beyond traditional behavior even true with DCL commands, where the command line is directly accessed (it REALLY would be a design bug to not allow direct access to the command line for legacy or compatibility reasons.) We have been discussing the STANDARD usage, haven't we? :-). John