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: cygpath hangings: A fix - bash patch enclosed -- bash maintainer please note!


> From: Geoffrey Ruscoe
> Sent: Monday, November 10, 2003 8:05 PM

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

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

WFM

$ uname -a
CYGWIN_NT-5.0 P450 1.5.6s(0.94/3/2) 20031002 00:47:53 i686 unknown unknown
Cygwin

'cygcheck -svr' attached

/Hannu E K Nevalainen, B.Sc. EE - 59?16.37'N, 17?12.60'E
-- printf("LocalTime: UTC+%02d\n",(DST)? 2:1); --
--END OF MESSAGE--

Attachment: c_svr.txt
Description: Text document

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