X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Fri, 13 Jul 2012 16:31:25 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: test -f //dot Message-ID: <20120713143125.GP3406@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <500008DB DOT 9030604 AT codeplay DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Jul 13 13:27, Adam Dinwoodie wrote: > Paul Keir wrote: > >While running configure on llvm I get a hang on: > > > >... > >checking for Graphviz... echo Graphviz > >checking for dot... > > > >The configure script has a line starting: > >if { test -f "$as_dir/$ac_word$ac_exec_ext" && ... > > > >The problem occurs when $as_dir is / > > > >test -f //dot > > This will be to do with how Windows and Linux handle UNC paths. On Windows and Cygwin, //dot refers to a network share called "dot". On Linux (or at least the > RHEL6.2 system I just checked) //dot is a different way of expressing /dot. > > On RHEL: > > # mkdir /dot > # [[ /dot -ef //dot ]] && echo They look the same to me > They look the same to me > > On Cygwin: > > $ mkdir /dot > $ [[ /dot -ef //dot ]] || echo "But Cygwin thinks they're different" > But Cygwin thinks they're different > > >...also hangs (at least 15 mins.). I tested it on Linux and another- > >cygwin machine, and test returns promptly there. > > So what's the difference between the two Cygwin setups? The versions of > cygwin1.dll are probably most useful, although bear in mind "x worked with some > old version of Cygwin" tends to gather little sympathy unless the behaviour is > clearly a bug -- this isn't. At least to me. Neither in terms of POSIX compatibility. See the next to last paragraph of the "Pathname Resolution" chapter in the Open Group specs: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_12 Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple