Eric Blake wrote:
According to Damo, David on 1/14/2010 3:39 PM:
Hi,

I had a script that worked on UNIX, but on Cygwin it does not work. When I set 
a variable in a while loop I can't use it after the loop. However, this worked 
in UNIX. Any ideas why?
Yes.  ksh vs. bash.  http://tiswww.case.edu/php/chet/bash/FAQ, E4.  Not
cygwin-specific.
As was responded before, this isn't supposed to work in a pipe. Not in ksh either, I think, and I tried it, with ksh on a Sun and pdksh on cygwin.
So I don't think this is a ksh vs bash issue.
David, maybe you happened to have set the variable you checked before callling the script already?
------
Thomas

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

Reply via email to