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: f71eb,fb87ccfc9e8baf0a X-Google-Attributes: gidf71eb,public X-Google-Thread: f66ab,fb87ccfc9e8baf0a X-Google-Attributes: gidf66ab,public X-Google-Thread: f678f,fb87ccfc9e8baf0a X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1995-01-07 10:12:33 PST Newsgroups: comp.os.linux.misc,comp.os.os2.misc,comp.unix.osf.misc,comp.os.msdos.misc,comp.os.mach Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!gw1.att.com!nntpa!nntpa.cb.att.com!las From: las@nmgate.cb.att.com (Larry Shurr CB7211) Subject: Re: The big Question In-Reply-To: wweston@rowan.coventry.ac.uk's message of 4 Jan 1995 17:18:30 -0000 Message-ID: Sender: news@nntpa.cb.att.com (Netnews Administration) Nntp-Posting-Host: nmgate.cb.att.com Organization: AT&T References: <3dpmo9$6fh@calvin.st-and.ac.uk> <1995Jan2.135536.27035@imec.be> <1995Jan4.051639.24693@prpa.philips.com> <3eel96$h74@rowan.coventry.ac.uk> Date: Fri, 6 Jan 1995 20:43:43 GMT Xref: nntp.gmd.de comp.os.linux.misc:37716 comp.os.os2.misc:125805 comp.unix.osf.misc:2279 comp.os.msdos.misc:28519 comp.os.mach:3460 In article <3eel96$h74@rowan.coventry.ac.uk> wweston@rowan.coventry.ac.uk (WILLIAM WESTON) writes: >In article <1995Jan4.051639.24693@prpa.philips.com>, >Ross Morley wrote: >>buytaert@imec.be (Steven Buytaert) writes: >>>cdlevin (cdlevin@shadow.net) wrote: >>>: Dos has features that were patterned after UNIX? Name them, and tell >>>: me why you think they're corrupted. >>> OK, just to have an apetizer. I know this example has nothing to do with >>> a kernel on the unix side, but let's say 'pipes' and 'wildcards' ? [Stealth pedant mode on :-)] * Pipes - yes, though they're really just temp files and so not quite the same thing. * Wildcards - no, sorry. Etymology of DOS' wildcard handling is: MSDOS <- CP/M <- DOS 11 (for PDP-11. Actually, it may not have been DOS 11, but it was one of the DEC proprietary OS's). Some- what reduced in functionality, though, I believe: e.g. "A*BB.*" is equivalent to "A*.*" in MSDOS whereas DEC OS's handle this construct "correctly," though they may not have long ago, I can't remember now. There are other differences relating to "?", as well. * Handle based I/O (i.e., file descriptors, Microsoft called them "Xenix compatible" system calls). Introduced in MSDOS V2.0. Before then, MSDOS used File Control Block (FCB) based I/O, another concept inherited from CP/M. To this day, FCB's are still supported for the sake of backward compatibility. * Nested directory structure (with bastardized backslash pathname separator because forward slash used for "command line switches" (another characteristic patterned after DEC proprietary OS's)). * Character and block device drivers, though, again, much bastardized and reduced in functionality and boot-time loading added. Can't think of any others at the moment. [Stealth pedant mode off] >>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. There are system calls for wildcard handling. Programs which use them should be consistent, or largely so, though the interpretation is so limited that nasty surprises will crop up for users accustomed to something else. Letting the Unix shell expand wildcards makes for a consistent interpretation because most Unix programs don't even know there is such a thing as wildcards; they just see a list of names. People accustomed to the MSDOS or Digital interpretationa will encounter unexpected results. You can tell the shell not to expand wildcards, but that is extremely crippling since most Unix programs and all but a few Unix utilities do not process wildcards at all. >I am no expert. I have only just got Linux installed on my PC, and it's >not a big deal, but I've spent a couple of hours checking thru Linux >groups so I thought I'd better say something.... >Surely expanding wildcards in the shell is a BAD THING ? >rm proggy1.c rm proggy2.c shorthand rm prog* happiness >typo rm prog * gets expanded to wipe directory. >rm cannot check, because it just gets a list of files expanded >by the shell and does its duty. Ah. This is a philosophical dispute and you can never hope for consensus, but you knew that didn't you? Just to be contrary, I could argue that if MSDOS had an rm command, then it would delete prog plus every file in the current directory without an extension (type). Of course COMMAND.COM's "DEL" & "ERASE" commands accept only one argument, an interpretation I think stinks, personally, but it wouldn't wipe the directory. If it were VMS, it would very pedantically insist that you specify the extension and version number and so would delete nothing. Some people may prefer these interpretations and who's to say they're wrong? People tend to prefer what they're used to. The only thing I, personally, will willingly defend as a "should" is that the interpretation be consistent and predictable from command to command. Regards, Larry -- Larry A. Shurr (las@cbnmva.cb.att.com or lshurr@freenet.columbus.oh.us) Norman, listen carefully. I am lying. Are you sure your circuits are registering? Your ears are green. Logic is a little bird singing in a meadow. Logic is a wreath of pretty flowers which smell bad! - Mr. Spock