This is the mail archive of the cygwin@cygwin.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]
Other format: [Raw text]

RE: Re: cygpath hangings: A fix - bash patch enclosed -- bash maintainer please note!


>> I am using the latest version of Cygwin (1.5.5-1) on a Windows XP box on
a
>> domain (tried several fixes pertaining to changing the rights of
>> the cygwin
>> dir and whole c drive - Everybody full control).
>>
>> The problem is no command substitution works (using `'s or $()'s).
>>
>> After a fresh reboot (and the new version of the bash listed below), I
can
>> successfully run the hang.sh (from below) or a different command
>> substitution - but only a couple of times, and then they quits
responding.
>> Once one command shell quits responding no more command substitutions
will
>> work from any window.

>IIRC it was cgf who wrote:
>> > I've put a patched version of bash up at:
>> >
>> > ftp://sourceware.org/pub/cygwin/tmp/bash.exe
>> >
>> > if anyone wants to try this.  It would be good to confirm or deny
>> > that this fixes the problem for everyone.
>> >
>> > Btw, maybe this has already been mentioned, but here is a simple
>> > test script that demonstrates the problem when run from the console:
>> >
>> > #!/bin/bash
>> > exec 0<&-
>> > A=$(cygpath -A -P)
>> > echo $A
>> >
>> > Save it as "hang" and run it as "bash hang" and it should hang nicely
>> > with an unpatched bash.

Absolutely was cgf, sorry for clipping incorrectly

>$ echo ""; \
>for (( i=1; i<1000; i++)) ;do
>  echo -en "\e[F\e[$((7*($i%2)))m$i - ";
>  hang;
>done

This outputs:
1 - 
and never does anything ever again

>WFM

uname -a:
CYGWIN_NT-5.1 Consultant01 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown
unknown Cygwin

I've attached my cygcheck -svr:



Attachment: cygcheck.out
Description: Binary data

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

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