From: fjh AT cs DOT mu DOT OZ DOT AU (Fergus Henderson) Subject: Re: Asterisk expansion... 27 Jul 1998 21:33:32 -0700 Message-ID: <19980728010316.56058.cygnus.gnu-win32@mundook.cs.mu.OZ.AU> References: <19980727142753 DOT 6493 DOT rocketmail AT send1e DOT yahoomail DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: earnie_boyd AT yahoo DOT com Cc: gw32 On 27-Jul-1998, Earnie Boyd wrote: > ---Fergus Henderson wrote: > > My point is that your statement "It is the shells job to do the globbing > > not the programs", while valid in Unix, is not valid in DOS, and it > > is not valid in any unqualified sense in gnu-win32. > > I know from the experience of my mingw32-sup package that cmd.exe and > commmand.com do globbing, it is not as robust though. It has nothing to do with robustness. `cmd.exe' and `command.com' do globbing only for their builtin commands, because according to the DOS design it is the program's responsibility to do globbing, not the shell's. This design is in fact *more* robust (although arguably less flexible) than the Unix design, because it problems with commands such as `cp *.c' sometimes silently doing the wrong thing instead of reporting an error message. (The reason that the Unix design is arguably more flexible is that it allows you to change the globbing syntax by simply changing shells.) > For example: > `ls' doesn't do any globbing, it only reports on a list of files given > it on stdin. I ported it to native win32 using mingw32. If you didn't add code to `ls' to glob-expand its arguments as part of that port, then you didn't do a complete port, and the problem is thus best ascribed to a bug in your port, not to any lack of robustness in the way DOS handles globbing. -- Fergus Henderson | "I have always known that the pursuit WWW: | of excellence is a lethal habit" PGP: finger fjh AT 128 DOT 250 DOT 37 DOT 3 | -- the last words of T. S. Garp. - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".