Newbie Using "Programming Python" 1st Ed. Question

Aahz aahz at pythoncraft.com
Mon Dec 16 18:41:39 EST 2002


In article <3dfe08b0.12996890 at news.t-online.de>,
Gerson Kurz <gerson.kurz at t-online.de> wrote:
>On Mon, 16 Dec 2002 10:35:25 -0600, "mowestusa"
><justnotworking at mail.com> wrote:
>>
>>Now I know that it must be having trouble with the * but I don't understand
>>why.  This is exactly how Mark Lutz tells you to write out the command on
>>the command line.  You can use * all the time on the command line and MS-DOS
>>knows what you want.
>
>Not quite. Wildcard expansion (which the * is all about) is done by
>the shell on unixoid operating systems such as BSD and Linux, but not
>by the MS-DOS command line. You have the following options:
>
>a) Try using a port of a unix shell on windows. For example, cygwin
>(see http://www.cygwin.com/) is quite usable. If you run that sample
>in a cygwin bash shell on windows, it'll work
>
>b) Expand it yourself, e.g. using
>
>import os, fnmatch

Try using glob instead.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"To me vi is Zen.  To use vi is to practice zen.  Every command is a
koan.  Profound to the user, unintelligible to the uninitiated.  You
discover truth everytime you use it."  --reddy at lion.austin.ibm.com



More information about the Python-list mailing list