X-Spam-Check-By: sourceware.org X-VirusChecked: Checked X-Env-Sender: Alessio DOT MASSARO AT oxinst DOT co DOT uk X-Msg-Ref: server-10.tower-56.messagelabs.com!1141305026!115113762!1 X-StarScan-Version: 5.5.9.1; banners=-,-,- Message-ID: <158B6C2B3023D3119CC000508B08FA3C098870B7@ukrintx01.oxinst.co.uk> From: Alessio DOT MASSARO AT oxinst DOT co DOT uk To: cygwin AT cygwin DOT com Subject: empty directory globbing in bash/sh for loops Date: Thu, 2 Mar 2006 13:10:20 -0000 MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com In the Cygwin bash the following statement for file in ./SOME_EMPTY_DIR/* ; do do_it_on $file ; done executes the following once because of how globbing is done. do_it_on ./SOME_EMPTY_DIR/* Unfortunately the gcc 4.0.2 makefiles do use this on possibly empty directories and break. Does anybody know how to solve this, please? BIG THANX PS I realize it's a hot topic, but I really couldn't find a solution anywhere. I was actually surprises to see the gcc breaking on something like this because I've built cross-gcc 4.0.2 under mingw/msys before without any problems at all. ### OXFORD INSTRUMENTS http://www.oxford-instruments.com/ ### Unless stated above to be non-confidential, this E-mail and any attachments are private and confidential and are for the addressee only and may not be used, copied or disclosed save to the addressee. If you have received this E-mail in error please notify us upon receipt and delete it from your records. Internet communications are not secure and Oxford Instruments is not responsible for their abuse by third parties nor for any alteration or corruption in transmission. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/