www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/12/20/08:10:59

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019