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: f66ab,fb87ccfc9e8baf0a X-Google-Attributes: gidf66ab,public X-Google-Thread: 1103af,fb87ccfc9e8baf0a X-Google-Attributes: gid1103af,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-10 14:59:35 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!news.rwth-aachen.de!news.rhrz.uni-bonn.de!rhein!bnc.net!news.maz.net!news.ppp.de!news.Hanse.DE!wolfhh!wombat!root From: root@wombat.hanse.de (Bernd "Bernie" Meyer) Subject: Re: The big Question Organization: Private uucp site lost in the voids of the black hole Germany is in the Internet Message-ID: References: <3dpmo9$6fh@calvin.st-and.ac.uk> <3dupdf$7i4@hpscit.sc.hp.com> <3dvd4u$rmv@usenet.INS.CWRU.Edu> <1995Jan2.135536.27035@imec.be> <1995Jan4.051639.24693@prpa.philips.com> <3ei3o8$n8r@portal.gmu.edu> <3ejnh2$6hn@portal.gmu.edu> <3es3cs$7at@portal.gmu.edu> Date: Tue, 10 Jan 1995 11:56:28 GMT Xref: nntp.gmd.de comp.os.linux.misc:37834 comp.os.os2.misc:126102 comp.unix.osf.misc:2297 comp.os.msdos.misc:28609 comp.os.mach:3479 scoile@osf1.gmu.edu (Steve "Stevers!" Coile) writes: >Bernd "Bernie" Meyer (root@wombat.hanse.de) wrote: >>scoile@osf1.gmu.edu (Steve "Stevers!" Coile) writes: >[...] >>And what about the wonderful behaviour that "dir *.*" shows all files while >>"dir *" shows only those without extension, but "copy *.* b:" copies only >>files with extension and "copy *" copies all (or some such nonsense, I never >>really made statistics). >Incorrect. You haven't done *any* research, let alone "made statistics". >Please try again. OK, I installed the new version of dosemu just yesterday... Can't test anything without it, as I don't accept FAT partitions anymore. >"DIR *.*" will generate a listing of all files in the current directory. as will "DIR *" >"COPY *.* B:" will copy all files in the current directory to the default >directory of the B: drive. In both cases, files which have the "hidden" >bit set will be excluded. On the other hand, "COPY * B:" will only copy files without extension. Similarly, "DEL *" will delete all files without extension without asking, while "DEL *.*" will delete all files after asking ("all files will be deleted"), while "DEL a*.*: won't ask, even when all files _do_ start with an 'A'. "PRINT" behaves like copy and del as well. "ATTRIB" is an exception in that its wildcards include hidden/system files. "CHKDSK" doesn't see hidden files, even when the name is given explicitly --- "TYPE" does. But don't expect a pattern here (like "DIR" is broken, everything else interprets "*" as all files without extension and "*.*" as all files) --- "UNDELETE" has the behaviour of DIR (and is the one command that acts on files that DIR will _not_ show, somehow ironic....) >> What about "more >just one file? >"MORE < READ *.*" is an invalida command--"READ" does not exist within >the DOS command set. Now, can one issue the command, "MORE < *.*"? I >doubt it. But the file "README.TXT" quite often exists in directories. "READ*.*" is _one filename_. You are thinking about "read *.* | more". And I know you can't use wildcards there. The question is: WHY? >> Face it, wildcards are asolutely screwed in DOS, as is so >>much else. >They work exactly the way they are documented. That other command >interpreters do things differently is irrelevant. But they are as inconsistent as you can get. What is the big difference between "PRINT" and "TYPE", except from the output device? Why does one of them accept wildcards and the other one doesn't? And why weren't they designed such that "dir *94.doc" works? There is no advantage in the way they are implemented, other than the fact that this meant less work for Seattle Computers... >>>Then it doesn't want wildcards. There are Unix commands that won't >>>accept multiple file specifications also. >> >>But that is something very different in DOS (though it shouldn't be). >Huh? It's okay for Unix commands to demand a fixed number of file >specifications, but not for DOS? You misunderstood me here --- wildcards and multiple file specifications are two different things in DOS, while they are not in UNIX. _Every_ unix command "accepts" wildcards, but some may complain if the wildcards expand to more than a fixed number of arguments. In DOS, OTOH, some commands accept wildcards, while others don't, and some accept multiple file specifications while others don't. But there is no real relation between the two properties... "PRINT" does both, "TYPE" does neither, "DIR" does the first but not the second. >>"copy *.exe a:" works, while "copy one.exe two.exe a:" fails. >Correct. Had you read the documentation, you'd know that. I _do_ know it (I wrote it down, so?). I just loathe it and cannot see why this is a "good" way of doing it (or even consistent). >>"type read*.txt" fails completely (I think), no matter what the wildcard >>expands to. >The wildcard isn't "expanded" (which is where your problem lies--you >don't know how DOS wildcards work). TYPE accepts only a single argument. >That's docuemnted in both the on-line help and the printed manual. And "TYPE" doesn't accept wildcards. I know. It still fails, even if there is only one file with extension ".txt". It shouldn't. It is inconsistent. >Correct, because the wildcard isn't expanded, whether the expansion is >unambiguous or not. Again, your problem lies in your fundamental lack >of understanding about DOS and what COMMAND.COM expects. Then why does "DIR" handle its wildcards differently from "PRINT", and both differently from "CD" or "TYPE"? All those commands are builtin! >> Add to that the lack of filename completion >Filename completion is a shell feature. Note all Unix command shells offer >it either, and many programs can be obtained to add the functionality to >COMMAND.COM. There go another 4k of conventional memory.... >> Add to that the lack of filename completion and of symbolic >>links, and you have a system which is a nightmare to handle (who can type >>"cd \windows\winword\docs\work\93\letters\novell" as fast as >>"cd /novletters" or maybe "cd /winwinwdwlno"? >Who would want to clutter one directory with symbolic links for every >directory in the tree? Why organize your files in a hierarchical >structure if you're going to put symbolic links to everything at the >root level? _Every_ directory? Of course not! But I might have lots of letters to write to novell. I usually have half a dozen such shortcuts in "/" in my filesystem, depending on what I do at the moment. Bernie