Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Wed, 15 Oct 2003 14:41:21 -0400
From: Christopher Faylor <cgf-rcm@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: setup hangs during postinstall
Message-ID: <20031015184121.GC28402@redhat.com>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <D721826DEE793D49BC49582C121EDD3E3F55C9@exchange.perwill.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <D721826DEE793D49BC49582C121EDD3E3F55C9@exchange.perwill.com>
User-Agent: Mutt/1.4.1i

On Wed, Oct 15, 2003 at 07:24:53PM +0100, Steve Fairbairn wrote:
>
>Again, probably going over old ground but I can't find anywhere that it has
>actually been stated for those that can't duplicate the problem, that
>
>	TOPFOLDER="$(cygpath d:/)/Cygwin-XFree86"
>
>hangs, but 
>
>	cygpath d:/
>
>doesn't hang?
>
>As Brian has noted, Executing the binary with '< /dev/null' stops the
>hanging, but also executing it without capturing the output to a variable
>also stops the hanging.

I would guess that something like

foo=`bar`

is what is causing the problem because this uses a pipe for
communication.  In a shell that is run from setup.exe, it is possible
that stdin is not opened at all and stdout is the pipe in question.
Maybe this is somehow confusing the SHF* function.

So, the question is does something like this also hang?

#!/bin/bash
exec 0<&- 1>&- 
cygpath -S | cat

when invoked from the command line?  Or possibly via "Run"?

cgf

--
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/

