Date: Mon, 20 Dec 1993 13:38:13 +0100 From: terra AT diku DOT dk To: joep AT ichsun6 DOT ich DOT nl Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: go32 does not handle globbing properly? > One problem seems to be in the way go32 1.11 handles filename globbing. > I found out it does not work as in Unix. > Some examples: > suppose you have a directory containing the files: > > foo foo.c foo.o bar bar.c bar.o > > Then "ls foo*" results in: > > foo > > instead of: > > foo foo.c foo.o What "foo*" expands to is up to the shell. Period. Most Unix shells will expand as you want, but it is not built into Unix. The reason that you get the observed expansion is that go32 expands like most Dos shells do. If that is not what you want, you can turn expansion off (using stubedit) and do the expension yourself. I think there is a globbing library in Gnu Make that you can use. Note that whatever you do, some will think you did the wrong thing! Morten Welinder terra AT diku DOT dk