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 14:56:45 PST Path: archiver1.google.com!news1.google.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: "John S. Dyson" Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C3B5DBD.217B4B65@aaa.com> Subject: Re: historical evidence of what went wrong at DEC MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" 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 17:56:41 -0500 NNTP-Posting-Host: 198.70.149.90 X-Complaints-To: news-abuse@iquest.net X-Trace: news1.iquest.net 1010530516 198.70.149.90 (Tue, 08 Jan 2002 17:55:16 EST) NNTP-Posting-Date: Tue, 08 Jan 2002 17:55:16 EST Xref: archiver1.google.com comp.os.vms:59219 alt.sys.pdp10:9301 comp.sys.dec:11226 wrote in message news:slrna3msvs.1dl.rivie@cougar.no.domain... > robert@bonomi.invalid wrote: > > And, that there is *NO*WAY* -- from inspection of the command-line only -- to > > determine which interpretation applies, to which instance. Specific knowledge > > of the particular context is required. > > > > The semantics of the wildcard construct depend utterly on the context in which > > it is employed. > > 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 more formal specification of the filename (./-foo). You do have to remember that normally a '-' is the switch character, but with other OSes, the '/' is. If you have a filename called '/switch' of somekind, you are likely to have some kind of trouble, aren't you? :-). What if you have a filename called '//validswitch' in other OSes? Quoting mechanisms can be your friend, or specifying a full filespec should also be available to get you out of trouble. Perhaps some filesystems might also be restrictive as to valid characters in a filename, but problems do happen once in a while. Am I seeing a bias where '-' isn't the switch character, and an assumption that the directory seperator '/' is? :-). John