Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
From: root@wombat.hanse.de (Bernd "Bernie" Meyer)
Subject: Re: The big Question
Date: Tue, 10 Jan 1995 11:56:28 GMT	[thread overview]
Message-ID: <D26uI6.132@wombat.hanse.de> (raw)
In-Reply-To: 3es3cs$7at@portal.gmu.edu

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 <read*.*" where "read*.*" matches
>>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 /win<TAB>winw<TAB>d<TAB>w<TAB>l<TAB>no<TAB>"?

>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


  parent reply	other threads:[~1995-01-10 11:56 UTC|newest]

Thread overview: 139+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-12-27 18:34 The big Question John Laing Page
1994-12-29 16:50 ` Lee Sailer
1994-12-29  8:12   ` Darko Volaric
1994-12-29 10:19     ` Perry Donham
1994-12-29 21:15     ` cdlevin
1995-01-02 17:07       ` Raymond Shwake
1995-01-02 22:44         ` cdlevin
1995-01-03  6:28           ` b1ff
1995-01-04  2:26             ` joehkim
1995-01-04  7:33         ` Lee Sau Dan ~{@nJX6X~}
1995-01-05 23:36       ` Steve "Stevers!" Coile
1995-01-06  6:05       ` Aaron M. Scarisbrick
1994-12-29 22:27     ` Bob Hetzel
1994-12-30 13:55       ` Frank Slootweg
     [not found]       ` <dvorak-301294081746@192.0.2.1>
1994-12-30 18:12         ` Craig Burley
1995-01-02 18:24         ` John William Chambless
1994-12-31 16:10       ` cdlevin
1995-01-02  4:58         ` Jeff "Obik" Epler
1995-01-02 13:09         ` Stephen Harris
1995-01-02 13:55         ` Steven Buytaert
1995-01-02 19:44           ` Andrew Valencia
1995-01-02 22:23           ` cdlevin
1995-01-04  5:16           ` Ross Morley
1995-01-04 16:04             ` Jim_Mann
1995-01-04 15:18               ` Dan Swartzendruber
1995-01-08 22:11                 ` Wild cards (Was: The big Question) Maynard Hogg
1995-01-05  0:01               ` copy *.doc *.bak (Was: " Rick
1995-01-05  9:25               ` The big Question J.J. Paijmans
1995-01-07 23:48                 ` Ross Morley
     [not found]                   ` <3es3i7$7at@portal.gmu.edu>
1995-01-10 11:59                     ` Bernd "Bernie" Meyer
1995-01-04 17:18             ` WILLIAM WESTON
1995-01-04 20:31               ` Andrew Violette
1995-01-04 23:20                 ` cdlevin
1995-01-04 20:41               ` Mark van Hoeij
1995-01-06  1:09                 ` Steve "Stevers!" Coile
1995-01-06  3:14                   ` Joe Sloan
1995-01-13 22:30                     ` Andreas Helke
1995-01-14  1:16                       ` Joe Sloan
1995-01-04 23:18               ` Steven Pritchard
1995-01-06 20:43               ` Larry Shurr CB7211
1995-01-07  3:52                 ` Doug  Dejulio
1995-01-10 20:38                 ` Phil Edwards
1995-01-06  0:43             ` Steve "Stevers!" Coile
1995-01-06  2:22               ` Andrew M. Langmead
1995-01-06 15:27                 ` Steve "Stevers!" Coile
1995-01-07 23:02                   ` Bernd "Bernie" Meyer
1995-01-09 17:47                     ` cdlevin
1995-01-10 10:55                       ` Bernd "Bernie" Meyer
     [not found]                     ` <3es3cs$7at@portal.gmu.edu>
1995-01-10 11:56                       ` Bernd "Bernie" Meyer [this message]
1995-01-19 15:06                         ` Donal K. Fellows
1995-01-20  1:45                           ` Michael I Bushnell
1995-01-20  2:36                             ` Joe Sloan
1995-01-10 20:24                       ` David Gaudine
1995-01-19 19:22                       ` Citrom Rami
1995-01-09 18:18               ` Holger Veit
1995-01-10 19:13                 ` Steve "Stevers!" Coile
1995-01-10 21:13                   ` Paul Smith
1995-01-11 13:54                   ` Bernd "Bernie" Meyer
1995-01-12 16:28                   ` Matthias Bruestle
1995-01-06 12:52             ` Mark Crafts
1995-01-06 17:49               ` Don Johnson
1995-01-04 23:49           ` Kevin Lentin
1995-01-09 21:18             ` The big Question [Unix solution under DOS!] Joel M. Hoffman
1995-01-05 15:10           ` The big Question Pete Holsberg
1995-01-09 13:23           ` Dan Newcombe
1995-01-02 18:47         ` Matthew Francey
1995-01-03 13:15           ` John Hawksley
1995-01-03 18:11           ` Scot E. Wilcoxon
1995-01-04  7:42           ` Lee Sau Dan ~{@nJX6X~}
1995-01-04 14:02             ` A.Eigenbrood
1995-01-04 17:21               ` Jerry Leslie
1995-01-04 19:09               ` Dave Sherohman
1995-01-06  0:12           ` Steve "Stevers!" Coile
1995-01-07 15:48           ` Jurgen Botz
1995-01-02 21:20         ` Andrea Linussio
1995-01-02 21:48           ` Nigel Bovey
1995-01-04  7:59             ` Lee Sau Dan ~{@nJX6X~}
1995-01-04 18:46               ` Art Stine
1995-01-02 22:16           ` cdlevin
1995-01-03 16:00             ` Charles Owen
1995-01-07  2:16               ` Maynard Hogg
1995-01-06  0:19             ` Steve "Stevers!" Coile
1995-01-03  3:30           ` Fell Swoop
1995-01-07  2:16           ` Maynard Hogg
1995-01-02 22:47         ` Daniel Garcia
1995-01-03  1:11           ` Daniel E. Wilson
1995-01-04  5:10         ` Ross Morley
1995-01-06  0:41           ` Steve "Stevers!" Coile
1995-01-06 15:01             ` Grant Edwards
1995-01-08 22:09           ` Phil Hughes
     [not found]           ` <3eu2mm$dls@ibch10.inf.tu-dresden.de>
     [not found]             ` <cowen.789759278@moosilauke>
1995-01-11  1:31               ` Beelzebubba
1995-01-12  1:42                 ` Paul JY Lahaie
1995-01-04  7:26         ` Lee Sau Dan ~{@nJX6X~}
1995-01-06  0:48           ` Steve "Stevers!" Coile
1995-01-06  1:27             ` Joe Sloan
1995-01-06 15:24               ` Steve "Stevers!" Coile
1995-01-06  7:39             ` Jerry Leslie
1995-01-07 11:12             ` Michael H Procter
1995-01-07 16:54             ` Bernd "Bernie" Meyer
1995-01-09 18:42             ` Holger Veit
1995-01-10 19:20               ` Steve "Stevers!" Coile
1995-01-13 10:55                 ` Holger Veit
1995-01-13 16:22                   ` Dan Newcombe
1995-01-15 21:52                   ` Michel Eyckmans (MCE)
1995-01-17 18:56                     ` Kenneth Stailey
1995-01-08  4:41           ` Andy Stoffel
1995-01-09  3:23             ` Scott A. Laird
1995-01-04  7:31         ` Jason Burrell
1995-01-04  8:45           ` The big Question [was: Does God use DOS or UNIX?] Gordon Matzigkeit
1995-01-06  0:05         ` The big Question Steve "Stevers!" Coile
1995-01-07  2:16         ` Maynard Hogg
1994-12-30  2:05     ` Gary E. Grant
1994-12-30 18:45       ` ivie
     [not found]     ` <Pine.SUN.3.91.941229160417.2653 <3ed10l$1t@geraldo.cc.utexas.edu>
1995-01-05 13:36       ` Frank Slootweg
     [not found]     ` <Pine.SUN.3.91.941229160417.26531C-100000@ansha <3ehvq6$n8r@portal.gmu.edu>
1995-01-07  7:26       ` Bruce Hutchinson
     [not found]     ` <199501120847.AAA23589@uclink2.berkeley.edu>
1995-01-12 18:29       ` cdlevin
1994-12-29 17:11   ` Jack Coats
1994-12-30 18:59   ` Jim_Mann
1994-12-31  2:40     ` Orc
1994-12-31 21:35   ` Maynard Hogg
1995-01-02 23:44     ` Wallace Roberts
1994-12-30  4:23 ` Maynard Hogg
1994-12-30 18:48   ` ivie
1995-01-03 17:19   ` Kai Henningsen
1995-01-08 22:11     ` System 360 (Was: The big Question) Maynard Hogg
     [not found]       ` <1995Jan9.174905.15107@devildog.att.com>
1995-01-12 15:45         ` Arthur D. Jerijian
1995-01-13  1:48           ` Brandon S. Allbery
1995-01-16 16:53           ` Greg Wimpey
1995-01-17 19:29             ` Kenneth Stailey
     [not found]   ` <LAS.95Jan11162719@nmgate.cb.att.com>
1995-01-12 15:49     ` Mace Moneta
1995-01-13 12:53     ` Mark A. Horton KA4YBR
1995-01-03 11:46 ` The big Question Mike Moreton
1995-01-06  0:25   ` Steve "Stevers!" Coile
1995-01-07 16:50     ` Bernd "Bernie" Meyer
1995-01-03 21:39 ` Chris Bitmead
1995-01-07  0:12   ` Wallace Roberts
  -- strict thread matches above, loose matches on Subject: below --
1994-12-29 16:49 vdonisa
     [not found] <199501060533.WAA21754@xmission.xmission.com>
1995-01-06  6:27 ` cdlevin
1995-01-08 17:37   ` Marcus Harkins
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox