This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: environment variables derived from TMPDIR
* Ralf Fassel
| | Does it work to pass the contents of the file on stdin instead of
| | the file name as an argument?
| |
| | external_program < "$TMPFILE"
|
| Duh. This should work in 95% of the cases. In the other cases file
| size of TMPFILE is involved, so redirection would not work as-is.
Turns out that in most cases where a TMPFILE is required, it is
actually two temp files, and the temp file is the second input for the
program in question (stdin is the first).
So I guess we will change all the scripts to use a different
env-Variable when constructing the temp file name, and set that
variable on startup in the base-shell.
R'
--
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/