[plt-scheme] mzc *.ss
On Windows, cmd.exe does not expand wildcard characters on the command
line. You can perform a manual expansion of the wildcard in cmd.exe
like so:
for %%i in (*.ss) do mzc %%i
Alternately, when building mzc.exe, link it with the runtime setargv.obj
to have mzc perform the wildcard expansion itself.
Ben
Robby Findler wrote:
> Under linux, the shell is the one that does the replacing of *.ss with
> all of the filenames, before they are processed on the commandline.
> For example:
>
> % mzscheme -i- *.ss
> Welcome to MzScheme v4.2.1 [3m], Copyright (c) 2004-2009 PLT Scheme Inc.
>
>> (current-command-line-arguments)
>>
> #("a.ss" "b.ss" "bug.ss" "tmp.ss" "tmp2.ss")
>
> I'm not sure how that works under windows commandshell, but you might
> try using cygwin to get a more unix-like environment.
>
> hth,
> Robby
>
> On Sat, Nov 28, 2009 at 3:12 PM, Chongkai Zhu <czhu at cs.utah.edu> wrote:
>
>> "mzc *.ss" works under Linux, but not on Windows:
>>
>> D:\lib>mzc *.ss
>> mzc: file does not exist: *.ss
>>
>> === context ===
>> for-loop
>> C:\Program Files\PLT-4.2.2.4\collects\compiler\main.ss: [running body]
>>
>> Why?
>>
>> Chongkai
>> _________________________________________________
>> For list-related administrative tasks:
>> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>>
>>
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>