Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: [Raku] Asterisk on DOS command line

by jcb (Parson)
on Feb 12, 2021 at 02:33 UTC ( [id://11128285]=note: print w/replies, xml ) Need Help??


in reply to Re: [Raku] Asterisk on DOS command line
in thread [Raku] Asterisk on DOS command line

You are correct; the C runtime startup code is responsible for preparing the arguments to main on Windows. Native Windows programs do not use main as their entry point.

Most likely, the mingw startup code expands globs because GNU programs expect the shell invoking them to have already done that. If the MinGW C startup code did not do this, most GNU programs would not support filename globs on Windows.

There should be an option to specify whether or not to expand globs in argv when linking a MinGW program, since most programs need that, but a few do not. If there is no such option currently, that is arguably a bug in MinGW.

Replies are listed 'Best First'.
Re^3: [Raku] Asterisk on DOS command line
by sortiz (Initiate) on Feb 15, 2021 at 10:23 UTC

    For MinGW64's gcc, the included with Strawberry perl, I found that adding to the linker one of the included crt files CRT_glob.o or CRT_noglob.o does the trick. Choice your poison.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11128285]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2024-04-15 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found