* Eric Blake | | # call program: error: no such file /cygdrive/c/temp/foo.1234 | | # filename should be c:/temp/foo.1234 | | external_program "$TMPFILE" | | 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. Have to check whether that rest is really 5%, and whether conditionally calling cygpath is ok there. | Don't work too hard, make some time for fun as well! Thanks for pointing out ;-) I must admit that after one week of trying several SHELL environments on Windows and running into problems on each my visual field is very narrow by now. 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/