test report (Announce)
> > So how exactly do you get OpenWatcom to expand wildcards (a la DJGPP
> > globbing) into separate members in argv[]? wildargv.c? (Last I tried,
> it
> > didn't work for me, but I probably did it incorrectly.)
>
> That's a good question. There's a file WILDARGV.OBJ, which must be
> specified in the link step to replace the standard argv handling. I didn't
> try it yet, but JWasm could also benefit from this knowledge.
Whew, a really easy answer, luckily! (I was used to Turbo C and CC386 only needing WILDARGV.C by itself, hence the many errors when trying to compile without INITARG.H being found). You need both %WATCOM%\SRC\STARTUP\wildargv.c and initarg.h (I just copied 'em to the current dir). Then, you'll see it works:
// TEST.C
#include <stdio.h>
int main( int argc, char* argv[] )
{
int i;
if (argc > 1) for (i=1; i < argc; i++) printf("%s,",argv[i]);
return 0;
}
wcl386 -q test
test *.zip (prints "*.zip,")
... or ...
wcl386 -q test wildargv
test *.zip (prints a list of .ZIPs in the current dir)
P.S. You can get WILDARGV.C and INITARG.H in MISC_SRC.ZIP (109k) if you don't already have it. However, it's packed in Deflate64, so use Info-Zip's UNZIP (or p7zip, 7za + HX, etc) if necessary.
Complete thread:
- GIFSICLE 1.50K uploaded DOS (+Win32) port really works now - DOS386, 09.05.2008, 06:57 (Announce)
- GIFSICLE 1.50K uploaded DOS (+Win32) port really works now - DOS386, 09.05.2008, 07:07
- GIFSICLE 1.50K uploaded DOS (+Win32) port really works now - DOS386, 09.05.2008, 08:02
- GIFSICLE 1.50K - Rugxulo, 09.05.2008, 14:57
- GIFSICLE 1.50K - Steve, 09.05.2008, 17:02
- GIFSICLE 1.50K - Rugxulo, 09.05.2008, 14:57
- test report - Japheth, 13.05.2008, 15:12
- test report - rr, 13.05.2008, 17:00
- test report - Japheth, 13.05.2008, 18:23
- test report - rr, 13.05.2008, 21:38
- test report - Japheth, 13.05.2008, 21:55
- test report - Rugxulo, 13.05.2008, 22:25
- test report - Japheth, 13.05.2008, 23:06
- test report - Rugxulo, 14.05.2008, 00:39
- test report - Japheth, 14.05.2008, 08:34
- test report - marcov, 14.05.2008, 10:04
- test report - Japheth, 14.05.2008, 11:46
- test report - marcov, 14.05.2008, 11:56
- test report - Japheth, 14.05.2008, 11:46
- test report - marcov, 14.05.2008, 10:04
- test report - Japheth, 14.05.2008, 08:34
- test report - Rugxulo, 14.05.2008, 00:39
- test report - Japheth, 13.05.2008, 23:06
- test report - rr, 13.05.2008, 21:38
- test report - Japheth, 13.05.2008, 18:23
- BUG - DOS386, 31.05.2008, 01:56
- BUG - Japheth, 31.05.2008, 07:49
- test report - rr, 13.05.2008, 17:00
- GIFSICLE 1.50K uploaded DOS (+Win32) port really works now - DOS386, 09.05.2008, 08:02
- GIFSICLE 1.50K uploaded DOS (+Win32) port really works now - DOS386, 09.05.2008, 07:07