Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Date: Tue, 12 Dec 2000 12:25:15 -0500 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: globbing FAQ entry -- up to date? Message-ID: <20001212122515.D3082@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <4418-Tue12Dec2000171316+0000-starksb AT ebi DOT ac DOT uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.11i In-Reply-To: <4418-Tue12Dec2000171316+0000-starksb@ebi.ac.uk>; from starksb@ebi.ac.uk on Tue, Dec 12, 2000 at 05:13:16PM +0000 On Tue, Dec 12, 2000 at 05:13:16PM +0000, David Starks-Browning wrote: >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. It's not quite accurate. Cygwin no longer uses a "PID" environment variable. Instead it uses some other magic to figure out when it has been run from the "DOS style prompt". So, removing the first paragraph may be sufficient. cgf -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com