Mail Archives: djgpp/1996/05/24/08:20:58
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 <stdio.h>
int main (int argc, char *argv[])
{
  while (--argc)
    printf ("%s\n", *++argv);
  return 0;
}
- Raw text -