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]

Re: ash and bash: Backquotes don't work reliably on Windows 2000


At 11:19 AM 6/20/2001, Martin Oberhuber wrote:
>Hello,
>
>we have found out that on some Windows 2000 computers (particularly
>very fast laptops with rather slow hard disk), the result of a command 
>in backquotes isn't put into the variable associated reliably. A 
>command like 
>
>UNAME=`uname`
>
>will return the correct result most of the time, but will sometimes 
>return an EMPTY result! It looks like a race condition where the 
>shell tries to read the program's output before the subprocess for
>uname is finished... This is extremely annoying and makes it 
>impossible to write reliable shellscripts!
>
>The problem is very hard to reproduce. It seems to turn up only
>on few computers, and only with lots of disk access around the
>"backquote sections".
>
>Is this problem already known, and what can we do to fix it?
>
>I can try and put together a simple shellscript for reproducing
>the problem, if needed.



This is not a known issue.   You're best bet is to try to debug it and
inform the list of your findings.  I'm sure anyone else with ideas to
help you will chime in as appropriate.



Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
118 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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