This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

globbing FAQ entry -- up to date?


The FAQ has this entry, but it's marked "not yet updated for the
latest net release".  I suspect it still applies.  Can I remove the
warning?

A.  How does wildcarding (globbing) work?


Q.  If an application using CYGWIN.DLL starts up, and can't find the
    PID environment variable, it assumes that it has been started from
    the a DOS style command prompt. This is pretty safe, since the
    rest of the tools (including bash) set PID so that a new process
    knows what PID it has when it starts up.

    If the DLL thinks it has come from a DOS style prompt, it runs a
    `globber' over the arguments provided on the command line. This
    means that if you type LS *.EXE from DOS, it will do what you
    might expect.

    Beware: globbing uses malloc. If your application defines malloc,
    that will get used. This may do horrible things to you.

Thanks,
David


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]