From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1044c2,fb87ccfc9e8baf0a X-Google-Attributes: gid1044c2,public X-Google-Thread: 1103af,fb87ccfc9e8baf0a X-Google-Attributes: gid1103af,public X-Google-Thread: f66ab,fb87ccfc9e8baf0a X-Google-Attributes: gidf66ab,public X-Google-Thread: f678f,fb87ccfc9e8baf0a X-Google-Attributes: gidf678f,public X-Google-Thread: f71eb,fb87ccfc9e8baf0a X-Google-Attributes: gidf71eb,public X-Google-ArrivalTime: 1995-01-08 14:11:51 PST Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!udel!gatech!howland.reston.ans.net!ix.netcom.com!netcomsv!gol!gol!not-for-mail From: maynard@gol.com (Maynard Hogg) Newsgroups: comp.os.linux.misc,comp.os.os2.misc,comp.unix.osf.misc,comp.os.msdos.misc,comp.os.mach Subject: Wild cards (Was: The big Question) Date: 9 Jan 1995 07:11:51 +0900 Organization: Hogg Honyaku Jimusho, Tokyo, Japan Sender: maynard@gol1.gol.com Message-ID: References: <3dpmo9$6fh@calvin.st-and.ac.uk> <1995Jan2.135536.27035@imec.be> <1995Jan4.051639.24693@prpa.philips.com> <8j2gPm2SMUF=81pmpJ@transarc.com> <3eee7q$36u@paperboy.osf.org> NNTP-Posting-Host: gol1.gol.com Xref: nntp.gmd.de comp.os.linux.misc:37856 comp.os.os2.misc:126249 comp.unix.osf.misc:2303 comp.os.msdos.misc:28620 comp.os.mach:3485 dswartz@pugsley.osf.org (Dan Swartzendruber) writes: > >ross@prpa.philips.com (Ross Morley) writes: > > Oh, that reminds me. Wildcards. DOS screws them up too. DOS *doesn't* > > do wildcards, each individual application program has to process them, > > hence you get inconsistencies in the way "*" and "?" are handled in > > difference command lines. In UNIX, the command interpreter (shell) > > handles the wildcards so the apps don't have to worry about them and > > you get consistency. > Classic Unix apologia. Sorry, I don't buy it. Pointing at DOS as > an example of why having the applications do the wildcard processing > in no way proves that this can't be done right. What's wrong with > a library routine an application can call that provides a consistent > user interface and calling sequence? Stratus' VOS did this. Their > command parser had its share of flaws, but for different reasons. > And one could write an 'rm' command that was less error prone than > that of Unix. Somewhere I have a book of Unix papers that starts off with one listing "known mistakes" with Unix. The wild card expansion mechanism and the contortions involved in "quoting" metacharacters figures prominently in the discussion. The conclusion was, however, most illuminating: Although hindsight tells us that shared libraries are a better way to handle wildcards--MKS, for one, does this for their DOS package--like so many DOS bugs, this mistake is carved in stone, and it is therefore too late to go back and fix it. (I understand that the hard part of Windows is maintaining backward compatibility with DOS.) === Maynard Hogg #306, 4-30-10 Yoga, Setagaya-ku, Tokyo, Japan 158 Fax: +81-3-3700-7399 Internet: maynard@gol.com Looking for Internet access in Japan? E-mail info@gol.com