From: Eric Backus Subject: Globbing To: djgpp AT sun DOT soe DOT clarkson DOT edu (djgpp) Date: Wed, 25 Mar 92 10:29:29 PST Mailer: Elm [revision: 66.25] Status: O > What is the standard way to add "globbing" (command-line filename > expansion) to djgpp programs? I'm a djgpp novice. I've been able to > add glob.c (from the GNUish libs) to texindex to get globbing, but > there must be a standard way to do this. > > In MSC, globbing can be easily added at link time. I'd appreciate > any pointers on this globbing thing for djgpp. Since I come from a UNIX background, I feel that globbing is the job of the shell, not the program. You can get MS_SH164.ZIP from simtel20, which contains a PC shell which does globbing. This shell is somewhere between the Bourne shell and ksh, and works quite well. If you want globbing anyway, either go32 would have to do it, or you have to compile it into your program, or you'd have to supply an alternate crt0.o file at link time that does it for you. The latter would be similar to the way MSC does it, but of course such a crt0.o file does not yet exist. Perhaps we need yet another GO32 environment variable option to specify whether go32 should glob or not. On a semi-related subject, has anyone built into go32 the GNUish mechanism for passing long command lines? -- Eric Backus ericb%hplsla AT hplabs DOT hp DOT com (206) 335-2495