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: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-Thread: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-ArrivalTime: 2002-01-09 06:54:38 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!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> 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: Wed, 9 Jan 2002 10:00:21 -0500 NNTP-Posting-Host: 198.70.149.90 X-Complaints-To: news-abuse@iquest.net X-Trace: news1.iquest.net 1010587989 198.70.149.90 (Wed, 09 Jan 2002 09:53:09 EST) NNTP-Posting-Date: Wed, 09 Jan 2002 09:53:09 EST Xref: archiver1.google.com comp.os.vms:59376 alt.sys.pdp10:9353 comp.sys.dec:11275 wrote in message news:FRR_7.819$Kf.15194@ord-read.news.verio.net... > In article , wrote: > >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 '-'. > > From inspection of the command-line only, one *can* determine _how_ the > wildcard expansion, presuming it is enabled, that is, will be done. '*.foo' > _always_ expands to an -ordered-list- of pre-existant filenames matching the > pattern. Regardless of positon on the line, regardless of the command or > context. > > Admittdly, _many_ Unix commands can get 'confused' when passed filenames > that 'look like' other optional parameters that would preceede actual > filenames on the command-line. probably the worst "abuse" of that > characteristic is a directory containing logfiles -- named "log_yymmdd.hh". > somebody added two zero-length files, 'data.archive', and '-uf'. > They then archived with "tar *". > The above aren't NORMAL uses of the system, and one has to go out of their way to create filenames like '-uf.' Weird filenames can be created under different OSes, and the effects of the wierd filenames can be upleasant. Under DEC OSes, deleting a filename literally '*.c' could cause some trouble, and perhaps unexpected results. I agree tough that the effects of the very consistant shell behavior, given uncommon and wierd filenames could work weirdly. DCL BY DEFAULT has inconsistant parsing of wildcards in differing contexts as NORMAL behavior. John