http://qs1969.pair.com?node_id=180802


in reply to Command line globbing under Win32

I'm fairly certain that 4NT does NO command line globbing at all
The help section states that the 4dos command line is first 4nt alias expanded, then 4nt variable expanded, then the command line is checked for redirection or piping.

The following snip shows what is in my comspec variable running under 4nt.

c:\ ->perl -e "print \"$ENV{COMSPEC}\""
C:\4NT\4NT.EXE

Replies are listed 'Best First'.
Re: Re: Command line globbing under Win32
by Jenda (Abbot) on Jul 15, 2002 at 23:26 UTC

    Thank you

    I have just uploaded a beta version of new G.pm to http://jenda.krynicky.cz/Beta/ and would like to ask people to try it out.

    Changes from last version:

    • The module no longer uses Win32::API. Under Windows it uses an XS part to get to the raw command line, on other systems it is just plain Perl using no modules except core ones.
    • The module now not only tweaks @ARGV if asked to, but also exports the functions containing its functionality. These functions work fine on non-Windows systems as well, except for GetCommandLine() with is replaced by a stub.
    • If the module is loaded due to "use G" statement it only does anything under Windows. If it's loaded by -MG in perl parameters or PERL5OPT it globs the params even under Unix. This may be handy if you need to start another script, need to glob the parameters and do not want to include shell in the process for security reasons.

    Please let me know if you have any problems or if something works unlike you expect.

    Thanks, Jenda

    P.S.: If you use Windows & ActivePerl 6xx you may install the module by
    ppm install --location=http://jenda.krynicky.cz/Beta G

    Update: May I ask why did people downvote this node? I really wish I could see the list of people who downvoted a node so that I could ask them why.

    P.P.S.: It's no longer beta. Install by
    ppm install --location=http://jenda.krynicky.cz/perl G