This is the mail archive of the cygwin 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]

Strange behaviour with output redirection


Hi there,

I am using the following convention to set variables in Bash:

awk -f /"SIMU_included/{print \$3}" subst$1 >${TMPDIR}/$$
[ -s ${TMPDIR}/$$ ] && < ${TMPDIR}/$$ read SIMU

For some reason parameter "SIMU" gets set randomly.
Could this be due W2K's buffering in creation of
temporary file ${TMPDIR}/$$? i.e read happens before file
is written on disk?

For some reason setting "ntsec" seems to help but this does not
explain the random success of file reading.

-pekka-


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