Date: Fri, 24 May 1996 15:17:20 +0200 (IST) From: Eli Zaretskii To: dan AT math DOT uiuc DOT edu Cc: djgpp AT delorie DOT com Subject: Re: globbing a:*.c bug In-Reply-To: <4o1r22$nfm@vixen.cso.uiuc.edu> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 23 May 1996, Dan Grayson wrote: > Globbing a:*.c doesn't work with the latest djgpp v2, for it yields ./a:foo.c > ../a:bar.c ... It surely works for me. I wrote a simple program (attached at the end), and it dutifully printed all the *.c files on a floppy when I invoked it with a:*.c as its single argument. So it must be some other reason that in your case it didn't work. Please tell more about the program that failed with globbing. I suspect that the globbing worked, but then the program's code thought that a:bar.c is a relative pathname, because it doesn't have a leading slash. Programs written for Unix often fail in this way. ------------------------------------------------------------------ #include int main (int argc, char *argv[]) { while (--argc) printf ("%s\n", *++argv); return 0; }